@@ -52,22 +52,22 @@ Inside the expression, you have access to a number of variables:
5252
5353Additionally, 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- ``has_role ``
64+ ``is_fully_authenticated() ``
65+ Equal to checking if the user has the ``IS_AUTHENTICATED_FULLY `` role .
66+ ``has_role() ``
6767 Checks to see if the user has the given role - equivalent to an expression like
6868 ``'ROLE_ADMIN' in roles ``.
6969
70- .. sidebar :: ``is_remember_me`` is different than checking ``IS_AUTHENTICATED_REMEMBERED``
70+ .. sidebar :: ``is_remember_me() `` is different than checking ``IS_AUTHENTICATED_REMEMBERED``
7171
7272 The ``is_remember_me() `` and ``is_fully_authenticated() `` functions are *similar *
7373 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:
8787 Here, ``$access1 `` and ``$access2 `` will be the same value. Unlike the
8888 behavior of ``IS_AUTHENTICATED_REMEMBERED `` and ``IS_AUTHENTICATED_FULLY ``,
8989 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
9191 true if the user has actually logged in during this session (i.e. is
9292 full-fledged).
9393
0 commit comments