feat: align role assignment logic with myep-team
This commit is contained in:
@@ -53,7 +53,14 @@
|
||||
{{ user.personId | default('-') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ user.roles | map_roles | join(', ') | default('-') }}
|
||||
{{ user.roles | effective_roles | join(', ') | default('-') }}
|
||||
{% if user.roles | nominated_roles is not empty %}
|
||||
<div class="flex flex-wrap gap-1 pt-1">
|
||||
{% for label in user.roles | nominated_roles %}
|
||||
<twig:badge variant="warning">{{ label }}</twig:badge>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{{ user.hotelCodes | join(', ') | default('-') }}
|
||||
@@ -63,8 +70,8 @@
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<twig:dropdown>
|
||||
<twig:dropdown:hxbutton url="{{ path('app_admin_user_edit', { 'id': user.id, 'r': return_url() }) }}">
|
||||
Berechtigungen bearbeiten
|
||||
<twig:dropdown:hxbutton url="{{ path('app_admin_user_permissions', { 'id': user.id, 'r': return_url() }) }}">
|
||||
Berechtigungen
|
||||
</twig:dropdown:hxbutton>
|
||||
</twig:dropdown>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user