1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-28 22:07:41 +00:00

Merge branch 'develop' into thumbnails

This commit is contained in:
mmonkey
2022-01-28 23:15:50 -06:00
6 changed files with 58 additions and 56 deletions

View File

@@ -810,7 +810,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: