Skip to content

Commit 994d88a

Browse files
committed
minor symfony#14924 [ExpressionLanguage][Security] role_names instead of roles (wickedOne)
This PR was merged into the 4.4 branch. Discussion ---------- [ExpressionLanguage][Security] role_names instead of roles corrected wrong attribute name relates to symfony/symfony#40087 Commits ------- 1707188 role_names instead of roles
2 parents b4ac1b7 + 1707188 commit 994d88a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

security/expressions.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ Inside the expression, you have access to a number of variables:
4242
The array of roles the user has. This array includes any roles granted
4343
indirectly via the :ref:`role hierarchy <security-role-hierarchy>` but it
4444
does not include the ``IS_AUTHENTICATED_*`` attributes (see the functions below).
45+
``role_names``
46+
A string representation of the roles the user has. This array includes any roles granted
47+
indirectly via the :ref:`role hierarchy <security-role-hierarchy>` but it
48+
does not include the ``IS_AUTHENTICATED_*`` attributes (see the functions below).
4549
``object``
4650
The object (if any) that's passed as the second argument to ``isGranted()``.
4751
``token``

0 commit comments

Comments
 (0)