diff options
Diffstat (limited to 'servo')
-rw-r--r-- | servo/templates/admin/users/form.html | 2 |
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> |