mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
418 B
418 B
date | id | title |
---|---|---|
2020-11-16 | a7b0f7f9-72f1-4065-8b6f-d364caa6155e | IS~IMPERSONATOR~ |
Description
Replacement for
ROLEPREVIOUSADMIN
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 %}