fix(security) : restrict bookstack search endpoint to ROLE_USER
This commit is contained in:
+1
-1
@@ -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')",
|
||||
),
|
||||
],
|
||||
)]
|
||||
|
||||
Reference in New Issue
Block a user