Skip to content

Commit d062c60

Browse files
MrYamousOskarStark
andauthored
Apply suggestions from code review
Co-authored-by: Oskar Stark <[email protected]>
1 parent 4d63f1a commit d062c60

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2725,7 +2725,7 @@ anonymous users access by checking if there is no user set on the token::
27252725

27262726
.. versionadded:: 7.3
27272727

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
27292729
was introduced in Symfony 7.3.
27302730

27312731
Setting Individual User Permissions

security/voters.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ which makes creating a voter even easier::
5151

5252
.. versionadded:: 7.3
5353

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
5555
was introduced in Symfony 7.3.
5656

5757
.. _how-to-use-the-voter-in-a-controller:
@@ -211,6 +211,7 @@ would look like this::
211211
}
212212

213213
$vote->reasons[] = 'You are not the owner of the Post.';
214+
214215
return false;
215216
}
216217
}

0 commit comments

Comments
 (0)