Skip to content

Commit 8238237

Browse files
committed
Merge branch '5.4' into 6.2
* 5.4: Change security title for checking if user is logged in
2 parents c373d9e + 4d64e82 commit 8238237

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

security.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,15 +2491,17 @@ these voters is similar to the role-based access checks implemented in the
24912491
previous chapters. Read :doc:`/security/voters` to learn how to implement
24922492
your own voter.
24932493

2494-
Checking to see if a User is Logged In (IS_AUTHENTICATED_FULLY)
2495-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2494+
.. _checking-to-see-if-a-user-is-logged-in-is-authenticated-fully:
2495+
2496+
Checking to see if a User is Logged In
2497+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24962498

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

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

2502-
Secondly, you can use a special "attribute" in place of a role::
2504+
Secondly, you can use the special "attribute" ``IS_AUTHENTICATED_FULLY`` in place of a role::
25032505

25042506
// ...
25052507

0 commit comments

Comments
 (0)