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 8438276

Browse filesBrowse files
committed
Minor tweak in a security expression explanation
1 parent df13346 commit 8438276
Copy full SHA for 8438276

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎security/expressions.rst

Copy file name to clipboardExpand all lines: security/expressions.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ Inside the expression, you have access to a number of variables:
3939
``user``
4040
The user object (or the string ``anon`` if you're not authenticated).
4141
``roles``
42-
The array of roles the user has, including from the
43-
:ref:`role hierarchy <security-role-hierarchy>` but not including the
44-
``IS_AUTHENTICATED_*`` attributes (see the functions below).
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
44+
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()``.
4747
``token``

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.