wiki/content/20201116122125-role_previous_admin.md

433 B

date id title
2020-11-16 bc9f093c-3ae9-44ca-bf33-b8c262bd1f55 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 ISIMPERSONATOR.