Skip to content

Commit ea80959

Browse files
committed
fixed expression
1 parent cd5eb11 commit ea80959

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

security/expressions.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ Additionally, you have access to a number of functions inside the expression:
6161
Similar, but not equal to ``IS_AUTHENTICATED_REMEMBERED``, see below.
6262
``is_fully_authenticated``
6363
Similar, but not equal to ``IS_AUTHENTICATED_FULLY``, see below.
64-
``has_role``
65-
Checks to see if the user has the given role - equivalent to an expression like
66-
``'ROLE_ADMIN' in roles``.
64+
``is_granted``
65+
Checks if the user has the given permission. Optionally accepts a second argument
66+
with the object where permission is checked on. It's equivalent to using
67+
the :doc:`isGranted() method </security/securing_services>` from the authorization
68+
checker service.
6769

6870
.. sidebar:: ``is_remember_me`` is different than checking ``IS_AUTHENTICATED_REMEMBERED``
6971

0 commit comments

Comments
 (0)