Fix for the fix cover_url
This commit is contained in:
parent
bed1b24340
commit
422c1893c0
|
@ -613,7 +613,8 @@ def edit_book(book_id):
|
||||||
|
|
||||||
if not error:
|
if not error:
|
||||||
if "cover_url" in to_save:
|
if "cover_url" in to_save:
|
||||||
if not current_user.role_upload() and to_save["cover_url"] != "":
|
if to_save["cover_url"]:
|
||||||
|
if not current_user.role_upload():
|
||||||
return "", (403)
|
return "", (403)
|
||||||
result, error = helper.save_cover_from_url(to_save["cover_url"], book.path)
|
result, error = helper.save_cover_from_url(to_save["cover_url"], book.path)
|
||||||
if result is True:
|
if result is True:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user