@@ -52,22 +52,22 @@ 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
- ``has_role ``
64
+ ``is_fully_authenticated() ``
65
+ Equal to checking if the user has the ``IS_AUTHENTICATED_FULLY `` role .
66
+ ``has_role() ``
67
67
Checks to see if the user has the given role - equivalent to an expression like
68
68
``'ROLE_ADMIN' in roles ``.
69
69
70
- .. sidebar :: ``is_remember_me`` is different than checking ``IS_AUTHENTICATED_REMEMBERED``
70
+ .. sidebar :: ``is_remember_me() `` is different than checking ``IS_AUTHENTICATED_REMEMBERED``
71
71
72
72
The ``is_remember_me() `` and ``is_fully_authenticated() `` functions are *similar *
73
73
to using ``IS_AUTHENTICATED_REMEMBERED `` and ``IS_AUTHENTICATED_FULLY ``
@@ -87,7 +87,7 @@ Additionally, you have access to a number of functions inside the expression:
87
87
Here, ``$access1 `` and ``$access2 `` will be the same value. Unlike the
88
88
behavior of ``IS_AUTHENTICATED_REMEMBERED `` and ``IS_AUTHENTICATED_FULLY ``,
89
89
the ``is_remember_me() `` function *only * returns true if the user is authenticated
90
- via a remember-me cookie and ``is_fully_authenticated `` *only * returns
90
+ via a remember-me cookie and ``is_fully_authenticated() `` *only * returns
91
91
true if the user has actually logged in during this session (i.e. is
92
92
full-fledged).
93
93
0 commit comments