{% if logAlert() and is_granted('ROLE_INTERNAL') %}
{% endif %}
{% set isAllowedToSwitch = is_granted('ROLE_ALLOWED_TO_SWITCH') or is_granted('ROLE_INTERNAL') %}
{% if isAllowedToSwitch and not is_granted('ROLE_PREVIOUS_ADMIN') and not is_granted('ROLE_CUSTOMERS_ONLY') %}