diff --git a/src/ApiResource/PontBasculeHealthCheck.php b/src/ApiResource/PontBasculeHealthCheck.php index 40fcd29..4faa235 100644 --- a/src/ApiResource/PontBasculeHealthCheck.php +++ b/src/ApiResource/PontBasculeHealthCheck.php @@ -19,6 +19,7 @@ use Symfony\Component\Serializer\Attribute\Groups; description: 'Returns the connection state of the pont-bascule. Always 200, even when unreachable.', ), normalizationContext: ['groups' => ['pont_bascule:health:read']], + security: "is_granted('ROLE_USER')", provider: PontBasculeHealthProvider::class, ), ],