aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--servo/templates/admin/users/form.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/servo/templates/admin/users/form.html b/servo/templates/admin/users/form.html
index 34764ab..e744eb8 100644
--- a/servo/templates/admin/users/form.html
+++ b/servo/templates/admin/users/form.html
@@ -58,7 +58,7 @@
</div>
</div>
<div class="form-actions">
- {% if user.pk %}
+ {% if user.pk and can_delete %}
<a href="{% url 'admin-delete_user' user.pk %}" class="btn btn-danger" data-modal="#modal">{% trans "Delete" %}</a>
{% else %}
<a href="#" class="btn btn-danger disabled">{% trans "Delete" %}</a>