profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

IS~IMPERSONATOR~

Description

Replacement for ROLE~PREVIOUSADMIN~

Syntax

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

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