fix(security) : restrict bookstack search endpoint to ROLE_USER

This commit is contained in:
Matthieu
2026-06-22 09:02:52 +02:00
parent a547fd38c2
commit 4a9977e199
@@ -20,7 +20,7 @@ use Symfony\Component\Serializer\Attribute\Groups;
], ],
normalizationContext: ['groups' => ['bookstack_search:read']], normalizationContext: ['groups' => ['bookstack_search:read']],
provider: BookStackSearchResultProvider::class, provider: BookStackSearchResultProvider::class,
security: "is_granted('IS_AUTHENTICATED_FULLY')", security: "is_granted('ROLE_USER')",
), ),
], ],
)] )]