Skip to content

Commit f516983

Browse files
committed
Added documentation for IS_AUTHENTICATED
1 parent 34a8882 commit f516983

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

security.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,19 +2418,19 @@ Secondly, you can use a special "attribute" in place of a role::
24182418

24192419
public function adminDashboard(): Response
24202420
{
2421-
$this->denyAccessUnlessGranted('IS_AUTHENTICATED_FULLY');
2421+
$this->denyAccessUnlessGranted('IS_AUTHENTICATED');
24222422

24232423
// ...
24242424
}
24252425

2426-
You can use ``IS_AUTHENTICATED_FULLY`` anywhere roles are used: like
2426+
You can use ``IS_AUTHENTICATED`` anywhere roles are used: like
24272427
``access_control`` or in Twig.
24282428

2429-
``IS_AUTHENTICATED_FULLY`` isn't a role, but it kind of acts like one, and every
2429+
``IS_AUTHENTICATED`` isn't a role, but it kind of acts like one, and every
24302430
user that has logged in will have this. Actually, there are some special attributes
24312431
like this:
24322432

2433-
* ``IS_AUTHENTICATED_REMEMBERED``: *All* logged in users have this, even
2433+
* ``IS_AUTHENTICATED_REMEMBERED``: Just like ``IS_AUTHENTICATED``, *all* logged in users have this, even
24342434
if they are logged in because of a "remember me cookie". Even if you don't
24352435
use the :doc:`remember me functionality </security/remember_me>`,
24362436
you can use this to check if the user is logged in.

0 commit comments

Comments
 (0)