Skip to content

Commit 14ff672

Browse files
committed
[Security] Add ability for voters to explain their vote
1 parent 53018da commit 14ff672

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

security.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -2723,9 +2723,9 @@ anonymous users access by checking if there is no user set on the token::
27232723
}
27242724
}
27252725

2726-
.. versionnadded:: 7.3
2726+
.. 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
voteOnAttribute method was introduced in Symfony 7.3.
27302730

27312731
Setting Individual User Permissions

security/voters.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ which makes creating a voter even easier::
4949
abstract protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token, ?Vote $vote = null): bool;
5050
}
5151

52-
.. versionnadded:: 7.3
52+
.. 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
voteOnAttribute method was introduced in Symfony 7.3.
5656

5757
.. _how-to-use-the-voter-in-a-controller:

0 commit comments

Comments
 (0)