Skip to content

Commit 57691c0

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: [Security] User in expression cannot be "anon"
2 parents 7a61870 + 5c1db4f commit 57691c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

security/expressions.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ syntax, see :doc:`/components/expression_language/syntax`.
7373
Inside the expression, you have access to a number of variables:
7474

7575
``user``
76-
The user object (or the string ``anon`` if you're not authenticated).
76+
An instance of :class:`Symfony\\Component\\Security\\Core\\User\\UserInterface`
77+
that represents the current user or ``null`` if you're not authenticated.
7778
``role_names``
7879
An array with the string representation of the roles the user has. This array
7980
includes any roles granted indirectly via the :ref:`role hierarchy <security-role-hierarchy>` but it

0 commit comments

Comments
 (0)