Skip to content

[Security] Minor tweak in the impersonation explanation #12599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 6, 2019
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
6 changes: 3 additions & 3 deletions security/impersonating_user.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ role to the users that need it.
Knowing When Impersonation Is Active
------------------------------------

During impersonation, the user is provided with a special role called
``ROLE_PREVIOUS_ADMIN``. In a template, for instance, this role can be used
to show a link to exit impersonation:
When a user is being impersonated, Symfony grants them a special role called
``ROLE_PREVIOUS_ADMIN`` (in addition to the roles the user may have). Use this
special role, for instance, to show a link to exit impersonation in a template:

.. code-block:: html+twig

Expand Down