Prevent delete of Guest user #1938

This commit is contained in:
Ozzie Isaacs 2021-04-12 18:45:44 +02:00
parent 90f2b3fb21
commit d0a895628e

View file

@ -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");