From d0a895628ea1137a7bede955d84f42eda849617d Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Mon, 12 Apr 2021 18:45:44 +0200 Subject: [PATCH] Prevent delete of Guest user #1938 --- cps/static/js/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/static/js/table.js b/cps/static/js/table.js index 68f00aee..7a07d82d 100644 --- a/cps/static/js/table.js +++ b/cps/static/js/table.js @@ -462,7 +462,7 @@ $(function() { $("input[data-name='passwd_role'][data-pk='"+guest.data("pk")+"']").prop("disabled", true); $("input[data-name='edit_shelf_role'][data-pk='"+guest.data("pk")+"']").prop("disabled", true); $("input[data-name='sidebar_read_and_unread'][data-pk='"+guest.data("pk")+"']").prop("disabled", true); - $(".user-remove[data-pk='"+guest.data("pk")+"']").prop("disabled", true); + $(".user-remove[data-pk='"+guest.data("pk")+"']").hide(); }, onSort: function(a, b) { console.log("huh");