1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-28 05:47:43 +00:00

Bugfixes from testrun

This commit is contained in:
Ozzie Isaacs
2022-01-26 18:11:42 +01:00
parent baf32f9045
commit 6339d25af0
6 changed files with 58 additions and 56 deletions

View File

@@ -809,7 +809,8 @@ def edit_book(book_id):
if "cover_url" in to_save:
if to_save["cover_url"]:
if not current_user.role_upload():
return "", (403)
calibre_db.session.rollback()
return "", 403
if to_save["cover_url"].endswith('/static/generic_cover.jpg'):
book.has_cover = 0
else: