diff --git a/src/Entity/Supplier.php b/src/Entity/Supplier.php index 1fe346a..6ed64da 100644 --- a/src/Entity/Supplier.php +++ b/src/Entity/Supplier.php @@ -26,7 +26,7 @@ use Symfony\Component\Serializer\Attribute\Groups; ), new GetCollection( normalizationContext: ['groups' => ['supplier:read']], - security: "is_granted('ROLE_ADMIN')" + security: "is_granted('ROLE_USER')" ), new Post( normalizationContext: ['groups' => ['supplier:read']],