Skip to content

Commit 3b99417

Browse files
committed
minor #12599 [Security] Minor tweak in the impersonation explanation (javiereguiluz)
This PR was squashed before being merged into the 4.3 branch (closes #12599). Discussion ---------- [Security] Minor tweak in the impersonation explanation It's a minor change, but in the original text I don't know if it was clear that impersonated users keep their roles and Symfony adds a new one and doesn't replace the original roles. Commits ------- ed685a9 [Security] Minor tweak in the impersonation explanation
2 parents ebcfdfe + ed685a9 commit 3b99417

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

security/impersonating_user.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ role to the users that need it.
8585
Knowing When Impersonation Is Active
8686
------------------------------------
8787

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

9292
.. code-block:: html+twig
9393

0 commit comments

Comments
 (0)