Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion security/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ syntax, see :doc:`/components/expression_language/syntax`.
Inside the expression, you have access to a number of variables:

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