Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8d47d9b

Browse filesBrowse files
committed
Merge branch '5.0'
* 5.0: Update authorization.rst
2 parents 0da61f0 + 07419d5 commit 8d47d9b
Copy full SHA for 8d47d9b

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎components/security/authorization.rst

Copy file name to clipboardExpand all lines: components/security/authorization.rst
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.