@@ -52,24 +52,24 @@ Inside the expression, you have access to a number of variables:
52
52
53
53
Additionally, you have access to a number of functions inside the expression:
54
54
55
- ``is_authenticated ``
55
+ ``is_authenticated() ``
56
56
Returns ``true `` if the user is authenticated via "remember-me" or authenticated
57
57
"fully" - i.e. returns true if the user is "logged in".
58
- ``is_anonymous ``
58
+ ``is_anonymous() ``
59
59
Returns ``true `` if the user is anonymous. That is, the firewall confirms that it
60
60
does not know this user's identity. This is different from ``IS_AUTHENTICATED_ANONYMOUSLY ``,
61
61
which is granted to *all * users, including authenticated ones.
62
- ``is_remember_me ``
62
+ ``is_remember_me() ``
63
63
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() ``
67
67
Checks if the user has the given permission. Optionally accepts a second argument
68
68
with the object where permission is checked on. It's equivalent to using
69
69
the :doc: `isGranted() method </security/securing_services >` from the authorization
70
70
checker service.
71
71
72
- .. sidebar :: ``is_remember_me`` is different than checking ``IS_AUTHENTICATED_REMEMBERED``
72
+ .. sidebar :: ``is_remember_me() `` is different than checking ``IS_AUTHENTICATED_REMEMBERED``
73
73
74
74
The ``is_remember_me() `` and ``is_fully_authenticated() `` functions are *similar *
75
75
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:
92
92
Here, ``$access1 `` and ``$access2 `` will be the same value. Unlike the
93
93
behavior of ``IS_AUTHENTICATED_REMEMBERED `` and ``IS_AUTHENTICATED_FULLY ``,
94
94
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
96
96
true if the user has actually logged in during this session (i.e. is
97
97
full-fledged).
98
98
0 commit comments