1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-21 18:38:24 +02:00

Add impersonate button

This commit is contained in:
Yohann D'ANELLO
2020-10-19 16:12:21 +02:00
parent 28e2fa10c3
commit 95fd8a066f
2 changed files with 12 additions and 5 deletions

View File

@ -62,6 +62,9 @@
{% if user.pk == user_object.pk or user.registration.is_admin %}
<div class="card-footer text-center">
<button class="btn btn-primary" data-toggle="modal" data-target="#updateUserModal">{% trans "Update" %}</button>
{% if user.registration.is_admin %}
<a class="btn btn-info" href="{% url "registration:user_impersonate" pk=user_object.pk %}">{% trans "Impersonate" %}</a>
{% endif %}
</div>
{% endif %}
</div>