mirror of
https://github.com/janeczku/calibre-web
synced 2025-12-12 11:18:05 +00:00
Prevent delete of Guest user #1938
This commit is contained in:
@@ -462,7 +462,7 @@ $(function() {
|
|||||||
$("input[data-name='passwd_role'][data-pk='"+guest.data("pk")+"']").prop("disabled", true);
|
$("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='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);
|
$("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) {
|
onSort: function(a, b) {
|
||||||
console.log("huh");
|
console.log("huh");
|
||||||
|
|||||||
Reference in New Issue
Block a user