From 4b5877c523c7f9efd3f69c257716044f7da127f3 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Thu, 9 Mar 2023 19:56:15 +0100 Subject: [PATCH] Change security title for checking if user is logged in --- security.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/security.rst b/security.rst index 79e08227f34..3908b976d4a 100644 --- a/security.rst +++ b/security.rst @@ -2456,15 +2456,17 @@ these voters is similar to the role-based access checks implemented in the previous chapters. Read :doc:`/security/voters` to learn how to implement your own voter. -Checking to see if a User is Logged In (IS_AUTHENTICATED_FULLY) -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.. _checking-to-see-if-a-user-is-logged-in-is-authenticated-fully: + +Checking to see if a User is Logged In +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If you *only* want to check if a user is logged in (you don't care about roles), you have the following two options. Firstly, if you've given *every* user ``ROLE_USER``, you can check for that role. -Secondly, you can use a special "attribute" in place of a role:: +Secondly, you can use the special "attribute" ``IS_AUTHENTICATED_FULLY`` in place of a role:: // ...