From de8f94d4ebe4a452ac0e5ff77fcbef1cfc37d1bb Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Mon, 4 Oct 2021 09:37:14 +0200 Subject: [PATCH] related to #1485 fix edit admin as admin bug --- admin/themes/default/js/user_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/js/user_list.js b/admin/themes/default/js/user_list.js index 7a66ec4e1..a156afa10 100644 --- a/admin/themes/default/js/user_list.js +++ b/admin/themes/default/js/user_list.js @@ -1182,7 +1182,7 @@ function fill_user_edit_permissions(user_to_edit, pop_in) { pop_in.find(".user-property-password.edit-password").show(); pop_in.find(".user-property-email .user-property-input").removeAttr('disabled'); pop_in.find(".user-property-username .edit-username").removeClass("notClickable"); - pop_in.find(".user-property-status .user-property-select").hide(); + pop_in.find(".user-property-status .user-property-select").addClass("notClickable"); } else if (user_to_edit.status == "webmaster" && connected_user_status == "admin") { // I'm admin and I want to edit webmaster pop_in.find(".user-property-password.edit-password").hide();