Fixed role display on profile and admin pages

This commit is contained in:
Timofey Mazurov
2021-03-30 00:29:47 +03:00
parent 74823e6c26
commit 3aa84cd04c
4 changed files with 34 additions and 3 deletions

View File

@@ -56,7 +56,12 @@
<tr>
<td><a href="#">{{ user.name }}</a></td>
<td>{{ user.user.email }}</td>
<td>{{ user.role }}</td>
<td>{% if user.custom_role_id == ZENDESK_ROLES.engineer %}
engineer
{% elif user.custom_role_id == ZENDESK_ROLES.light_agent %}
light_agent
{% endif %}
</td>
<td class="checkbox_field"></td>
</tr>
{% endfor %}