Skip to content

Commit b06017a

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: Minor tweak role_names instead of roles
2 parents 1b7f9fa + bc6ca52 commit b06017a

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+
An array with the string representation of the roles the user has. This array
47+
includes any roles granted 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)