Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Add example of @IsGranted() with multiple roles. #624

Merged
merged 1 commit into from Jul 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Resources/doc/annotations/security.rst
Expand Up @@ -34,7 +34,7 @@ on variables passed to the controller::
/**
* @Route("/posts/{id}")
*
* @IsGranted("ROLE_ADMIN")
* @IsGranted({"ROLE_ADMIN", "ROLE_SYSTEM"})
* @IsGranted("POST_SHOW", subject="post")
*/
public function show(Post $post)
Expand Down