10000 Merge branch '3.4' into 4.3 · symfony/symfony-docs@a687046 · GitHub
[go: up one dir, main page]

Skip to content

Commit a687046

Browse files
committed
Merge branch '3.4' into 4.3
* 3.4: Update authorization.rst
2 parents 58fd048 + 673e8e9 commit a687046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/security/authorization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ RoleVoter
122122

123123
The :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\RoleVoter`
124124
supports attributes starting with ``ROLE_`` and grants access to the user
125-
when the required ``ROLE_*`` attributes can all be found in the array of
126-
roles returned by the token's :method:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface::getRoleNames`
125+
when at least one required ``ROLE_*`` attribute can be found in the array of
126+
roles returned by the token's :method:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface::getRoles`
127127
method::
128128

129129
use Symfony\Component\Security\Core\Authorization\Voter\RoleVoter;

0 commit comments

Comments
 (0)
0