Skip to content

Commit 5c1db4f

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: [Security] User in expression cannot be "anon"
2 parents 86f08de + 7312eba commit 5c1db4f

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
@@ -44,7 +44,8 @@ syntax, see :doc:`/components/expression_language/syntax`.
4444
Inside the expression, you have access to a number of variables:
4545

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

0 commit comments

Comments
 (0)