Fixed access to shelfs

This commit is contained in:
Ozzie Isaacs
2022-01-28 20:01:33 +01:00
parent 17b4643b7c
commit 42f8209a4a
3 changed files with 41 additions and 39 deletions

View File

@@ -552,11 +552,9 @@ def HandleTagUpdate(tag_id):
else:
abort(404, description="Collection isn't known to CalibreWeb")
if not shelf_lib.check_shelf_edit_permissions(shelf):
abort(401, description="User is unauthaurized to edit shelf.")
if request.method == "DELETE":
shelf_lib.delete_shelf_helper(shelf)
if not shelf_lib.delete_shelf_helper(shelf):
abort(401, description="Error deleting Shelf")
else:
name = None
try: