Skip to content

Commit 4ab0b54

Browse files
authored
Update authorization.rst
1 parent f379079 commit 4ab0b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/security/authorization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ RoleVoter
123123
The :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\RoleVoter`
124124
supports attributes starting with ``ROLE_`` and grants access to the user
125125
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`
126+
roles returned by the token's :method:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface::getRoleNames`
127127
method::
128128

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

0 commit comments

Comments
 (0)