Skip to content

Commit cb091de

Browse files
committed
[Security] User in expression cannot be "anon"
1 parent 583ab04 commit cb091de

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` that represents the current user
48+
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)