profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

ROLE~PREVIOUSADMIN~

Description

Shows that currently logged in user is impersonating another user

Syntax

{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
    <a href="...">Exit impersonation</a>
{% endif %}

Deprecation

Deprecated in Symfony 5.1, replaced with IS~IMPERSONATOR~.

Related