Commit 422c1893 authored by Ozzieisaacs's avatar Ozzieisaacs

Fix for the fix cover_url

parent bed1b243
......@@ -613,7 +613,8 @@ def edit_book(book_id):
if not error:
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)
result, error = helper.save_cover_from_url(to_save["cover_url"], book.path)
if result is True:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment