Skip to content

Commit a8835d9

Browse files
committed
minor #12132 Update expressions.rst (kevinreniers)
This PR was submitted for the 4.3 branch but it was merged into the 3.4 branch instead (closes #12132). Discussion ---------- Update expressions.rst Clarify the difference between the `is_anonymous` function and `IS_AUTHENTICATED_ANONYMOUSLY`. This fixes #11950. Commits ------- 6df9898 Update expressions.rst
2 parents ada98d1 + 6df9898 commit a8835d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

security/expressions.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ Additionally, you have access to a number of functions inside the expression:
5656
Returns ``true`` if the user is authenticated via "remember-me" or authenticated
5757
"fully" - i.e. returns true if the user is "logged in".
5858
``is_anonymous``
59-
Equal to using ``IS_AUTHENTICATED_ANONYMOUSLY`` with the ``isGranted()`` function.
59+
Returns ``true`` if the user is anonymous. That is, the firewall confirms that it
60+
does not know this user's identity. This is different from ``IS_AUTHENTICATED_ANONYMOUSLY``,
61+
which is granted to *all* users, including authenticated ones.
6062
``is_remember_me``
6163
Similar, but not equal to ``IS_AUTHENTICATED_REMEMBERED``, see below.
6264
``is_fully_authenticated``

0 commit comments

Comments
 (0)