Skip to content

Commit 4bb19a9

Browse files
authored
[Security] Update voters.rst
Link to non-deprecated Security class being used in the example.
1 parent 62ec3cd commit 4bb19a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/voters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Checking for Roles inside a Voter
242242

243243
What if you want to call ``isGranted()`` from *inside* your voter - e.g. you want
244244
to see if the current user has ``ROLE_SUPER_ADMIN``. That's possible by injecting
245-
the :class:`Symfony\\Component\\Security\\Core\\Security`
245+
the :class:`Symfony\\Bundle\\SecurityBundle\\Security`
246246
into your voter. You can use this to, for example, *always* allow access to a user
247247
with ``ROLE_SUPER_ADMIN``::
248248

0 commit comments

Comments
 (0)