From 4c6cb3a678f9a14a85ebdefc2071476b55cfe216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Garc=C3=ADa=20Amor?= Date: Fri, 4 Aug 2017 10:58:47 +0200 Subject: [PATCH] Prevent admin user to delete itself --- supysonic/templates/users.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supysonic/templates/users.html b/supysonic/templates/users.html index 0771e31..f7977f7 100644 --- a/supysonic/templates/users.html +++ b/supysonic/templates/users.html @@ -36,8 +36,8 @@ {% if session.username == user.name %}{{ user.name }}{% else %} {{ user.name }}{% endif %} {{ user.mail }}{{ user.admin }}{{ user.last_play_date }} - - + {% if session.username != user.name %} + {% endif %} {% endfor %}