From 899ff0c742f8f1e55f2a875d04980e3c3460a865 Mon Sep 17 00:00:00 2001 From: si458 Date: Mon, 12 Aug 2024 16:01:36 +0100 Subject: [PATCH] dont allow deleting yourself in my users tab in web ui Signed-off-by: si458 --- views/default.handlebars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/default.handlebars b/views/default.handlebars index d7c29572..149e884f 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -16675,7 +16675,7 @@ // Show bottom buttons x = '
'; - if (userAdminRights) { x += '' + "Delete User" + ''; } + if (userAdminRights && (userinfo._id != user._id)) { x += '' + "Delete User" + ''; } x += '
'; // If user admin rights and not SSPI/LDAP and UserID does not start with ~, show change password if (userAdminRights && ((features & 0x00080000) == 0) && (user._id.split('/')[2][0] != '~')) {