Merge branch 'master' into Develop:

Access to shelfs
This commit is contained in:
Ozzie Isaacs
2022-01-28 20:04:04 +01:00
3 changed files with 41 additions and 39 deletions
+2 -4
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: