Skip to content

Commit 1fd7412

Browse files
committed
Merge branch '3.4' into 4.3
* 3.4: Tweaked the explanation about the is_fully_authenticated() function
2 parents 9f3fcac + 6a5fa12 commit 1fd7412

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

security/expressions.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,24 @@ Inside the expression, you have access to a number of variables:
5252

5353
Additionally, you have access to a number of functions inside the expression:
5454

55-
``is_authenticated``
55+
``is_authenticated()``
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".
58-
``is_anonymous``
58+
``is_anonymous()``
5959
Returns ``true`` if the user is anonymous. That is, the firewall confirms that it
6060
does not know this user's identity. This is different from ``IS_AUTHENTICATED_ANONYMOUSLY``,
6161
which is granted to *all* users, including authenticated ones.
62-
``is_remember_me``
62+
``is_remember_me()``
6363
Similar, but not equal to ``IS_AUTHENTICATED_REMEMBERED``, see below.
64-
``is_fully_authenticated``
65-
Similar, but not equal to ``IS_AUTHENTICATED_FULLY``, see below.
66-
``is_granted``
64+
``is_fully_authenticated()``
65+
Equal to checking if the user has the ``IS_AUTHENTICATED_FULLY`` role.
66+
``is_granted()``
6767
Checks if the user has the given permission. Optionally accepts a second argument
6868
with the object where permission is checked on. It's equivalent to using
6969
the :doc:`isGranted() method </security/securing_services>` from the authorization
7070
checker service.
7171

72-
.. sidebar:: ``is_remember_me`` is different than checking ``IS_AUTHENTICATED_REMEMBERED``
72+
.. sidebar:: ``is_remember_me()`` is different than checking ``IS_AUTHENTICATED_REMEMBERED``
7373

7474
The ``is_remember_me()`` and ``is_fully_authenticated()`` functions are *similar*
7575
to using ``IS_AUTHENTICATED_REMEMBERED`` and ``IS_AUTHENTICATED_FULLY``
@@ -92,7 +92,7 @@ Additionally, you have access to a number of functions inside the expression:
9292
Here, ``$access1`` and ``$access2`` will be the same value. Unlike the
9393
behavior of ``IS_AUTHENTICATED_REMEMBERED`` and ``IS_AUTHENTICATED_FULLY``,
9494
the ``is_remember_me()`` function *only* returns true if the user is authenticated
95-
via a remember-me cookie and ``is_fully_authenticated`` *only* returns
95+
via a remember-me cookie and ``is_fully_authenticated()`` *only* returns
9696
true if the user has actually logged in during this session (i.e. is
9797
full-fledged).
9898

0 commit comments

Comments
 (0)