diff --git a/security/expressions.rst b/security/expressions.rst index 2013d6656d7..6ea9d56a5d6 100644 --- a/security/expressions.rst +++ b/security/expressions.rst @@ -42,6 +42,10 @@ Inside the expression, you have access to a number of variables: The array of roles the user has. This array includes any roles granted indirectly via the :ref:`role hierarchy ` but it does not include the ``IS_AUTHENTICATED_*`` attributes (see the functions below). +``role_names`` + A string representation of the roles the user has. This array includes any roles granted + indirectly via the :ref:`role hierarchy ` but it + does not include the ``IS_AUTHENTICATED_*`` attributes (see the functions below). ``object`` The object (if any) that's passed as the second argument to ``isGranted()``. ``token``