diff --git a/src/Module/Integration/Infrastructure/ApiPlatform/Resource/BookStackShelf.php b/src/Module/Integration/Infrastructure/ApiPlatform/Resource/BookStackShelf.php index b7a2c0c..ec55760 100644 --- a/src/Module/Integration/Infrastructure/ApiPlatform/Resource/BookStackShelf.php +++ b/src/Module/Integration/Infrastructure/ApiPlatform/Resource/BookStackShelf.php @@ -15,7 +15,7 @@ use Symfony\Component\Serializer\Attribute\Groups; uriTemplate: '/bookstack/shelves', normalizationContext: ['groups' => ['bookstack_shelf:read']], provider: BookStackShelfProvider::class, - security: "is_granted('ROLE_ADMIN')", + security: "is_granted('ROLE_USER')", ), ], )] diff --git a/src/Module/Integration/Infrastructure/ApiPlatform/Resource/GiteaRepository.php b/src/Module/Integration/Infrastructure/ApiPlatform/Resource/GiteaRepository.php index 2ea8636..6ed68d6 100644 --- a/src/Module/Integration/Infrastructure/ApiPlatform/Resource/GiteaRepository.php +++ b/src/Module/Integration/Infrastructure/ApiPlatform/Resource/GiteaRepository.php @@ -15,7 +15,7 @@ use Symfony\Component\Serializer\Attribute\Groups; uriTemplate: '/gitea/repositories', normalizationContext: ['groups' => ['gitea_repo:read']], provider: GiteaRepositoryProvider::class, - security: "is_granted('ROLE_ADMIN')", + security: "is_granted('ROLE_USER')", ), ], )]