Skip to content

Commit

Permalink
Update expressions.rst
Browse files Browse the repository at this point in the history
Clarify the difference between the `is_anonymous` function and `IS_AUTHENTICATED_ANONYMOUSLY`.
  • Loading branch information
kevinreniers authored and OskarStark committed Aug 15, 2019
1 parent ada98d1 commit 6df9898
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion security/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ Additionally, you have access to a number of functions inside the expression:
Returns ``true`` if the user is authenticated via "remember-me" or authenticated
"fully" - i.e. returns true if the user is "logged in".
``is_anonymous``
Equal to using ``IS_AUTHENTICATED_ANONYMOUSLY`` with the ``isGranted()`` function.
Returns ``true`` if the user is anonymous. That is, the firewall confirms that it
does not know this user's identity. This is different from ``IS_AUTHENTICATED_ANONYMOUSLY``,
which is granted to *all* users, including authenticated ones.
``is_remember_me``
Similar, but not equal to ``IS_AUTHENTICATED_REMEMBERED``, see below.
``is_fully_authenticated``
Expand Down

0 comments on commit 6df9898

Please sign in to comment.