Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 994d88a

Browse filesBrowse files
committed
minor #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
Copy full SHA for 994d88a

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎security/expressions.rst

Copy file name to clipboardExpand all lines: security/expressions.rst
+4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.