Skip to content

Commit 4b5877c

Browse files
alamiraultOskarStark
authored andcommitted
Change security title for checking if user is logged in
1 parent defdea4 commit 4b5877c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

security.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -2456,15 +2456,17 @@ these voters is similar to the role-based access checks implemented in the
24562456
previous chapters. Read :doc:`/security/voters` to learn how to implement
24572457
your own voter.
24582458

2459-
Checking to see if a User is Logged In (IS_AUTHENTICATED_FULLY)
2460-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2459+
.. _checking-to-see-if-a-user-is-logged-in-is-authenticated-fully:
2460+
2461+
Checking to see if a User is Logged In
2462+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24612463

24622464
If you *only* want to check if a user is logged in (you don't care about roles),
24632465
you have the following two options.
24642466

24652467
Firstly, if you've given *every* user ``ROLE_USER``, you can check for that role.
24662468

2467-
Secondly, you can use a special "attribute" in place of a role::
2469+
Secondly, you can use the special "attribute" ``IS_AUTHENTICATED_FULLY`` in place of a role::
24682470

24692471
// ...
24702472

0 commit comments

Comments
 (0)