Skip to content

Commit 599922c

Browse files
committed
Backport a fix merged in 6.3
1 parent 25a1a94 commit 599922c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/voters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ code like this:
7878
{
7979
#[Route('/posts/{id}', name: 'post_show')]
8080
// check for "view" access: calls all voters
81-
#[IsGranted('show', 'post')]
81+
#[IsGranted('view', 'post')]
8282
public function show(Post $post): Response
8383
{
8484
// ...

0 commit comments

Comments
 (0)