feat: superadmin attribute for extended permissions like impersonating

This commit is contained in:
Björn Fromme
2024-04-17 18:06:56 +02:00
parent 30218d6f80
commit 8b4e9f546b
4 changed files with 61 additions and 1 deletions
@@ -94,6 +94,11 @@
</td>
<td>
<div class="flex items-center space-x-1 justify-end">
{% if is_granted('CAN_IMPERSONATE', teamer.user) %}
<a href="{{ path('app_teamer_index', { '_switch_user': teamer.user.email }) }}" title="Als Teamer:in maskieren">
{{ icon('mask') }}
</a>
{% endif %}
<a href="{{ path('app_administrative_teamer_profile', { 'uuid': teamer.uuid }) }}" title="Teamer:innenprofil {{ teamer }}">
{{ icon('user') }}
</a>