File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2725,7 +2725,7 @@ anonymous users access by checking if there is no user set on the token::
2725
2725
2726
2726
.. versionadded :: 7.3
2727
2727
2728
- The vote parameter in the :method: `Symfony\\ Component\\ Security\\ Core\\ Authorization\\ Voter\\ VoterInterface::voteOnAttribute ` method
2728
+ The ` $ vote` parameter in the :method: `Symfony\\ Component\\ Security\\ Core\\ Authorization\\ Voter\\ VoterInterface::voteOnAttribute ` method
2729
2729
was introduced in Symfony 7.3.
2730
2730
2731
2731
Setting Individual User Permissions
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ which makes creating a voter even easier::
51
51
52
52
.. versionadded :: 7.3
53
53
54
- The vote parameter in the :method: `Symfony\\ Component\\ Security\\ Core\\ Authorization\\ Voter\\ VoterInterface::voteOnAttribute ` method
54
+ The ` $ vote` parameter in the :method: `Symfony\\ Component\\ Security\\ Core\\ Authorization\\ Voter\\ VoterInterface::voteOnAttribute ` method
55
55
was introduced in Symfony 7.3.
56
56
57
57
.. _how-to-use-the-voter-in-a-controller :
@@ -211,6 +211,7 @@ would look like this::
211
211
}
212
212
213
213
$vote->reasons[] = 'You are not the owner of the Post.';
214
+
214
215
return false;
215
216
}
216
217
}
You can’t perform that action at this time.
0 commit comments