Skip to content

Commit 6df9898

Browse files
kevinreniersOskarStark
authored andcommitted
Update expressions.rst
Clarify the difference between the `is_anonymous` function and `IS_AUTHENTICATED_ANONYMOUSLY`.
1 parent ada98d1 commit 6df9898

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)