From 4a9977e19955e566273e711f453bbb630f26ab85 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Mon, 22 Jun 2026 09:02:52 +0200 Subject: [PATCH] fix(security) : restrict bookstack search endpoint to ROLE_USER --- .../ApiPlatform/Resource/BookStackSearchResult.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Integration/Infrastructure/ApiPlatform/Resource/BookStackSearchResult.php b/src/Module/Integration/Infrastructure/ApiPlatform/Resource/BookStackSearchResult.php index dab079a..e4c99ca 100644 --- a/src/Module/Integration/Infrastructure/ApiPlatform/Resource/BookStackSearchResult.php +++ b/src/Module/Integration/Infrastructure/ApiPlatform/Resource/BookStackSearchResult.php @@ -20,7 +20,7 @@ use Symfony\Component\Serializer\Attribute\Groups; ], normalizationContext: ['groups' => ['bookstack_search:read']], provider: BookStackSearchResultProvider::class, - security: "is_granted('IS_AUTHENTICATED_FULLY')", + security: "is_granted('ROLE_USER')", ), ], )]