Skip to content

Commit 89be18d

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Removed the "roles" variable role_names instead of roles
2 parents f45d714 + 77ace60 commit 89be18d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

security/expressions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ Inside the expression, you have access to a number of variables:
3838

3939
``user``
4040
The user object (or the string ``anon`` if you're not authenticated).
41-
``roles``
42-
The array of roles the user has. This array includes any roles granted
43-
indirectly via the :ref:`role hierarchy <security-role-hierarchy>` but it
41+
``role_names``
42+
An array with the string representation of the roles the user has. This array
43+
includes any roles granted indirectly via the :ref:`role hierarchy <security-role-hierarchy>` but it
4444
does not include the ``IS_AUTHENTICATED_*`` attributes (see the functions below).
4545
``object``
4646
The object (if any) that's passed as the second argument to ``isGranted()``.

0 commit comments

Comments
 (0)