Commit bed1b243 authored by Ozzieisaacs's avatar Ozzieisaacs

Fixes from test of upload restrictions

parent da909ff0
...@@ -612,7 +612,7 @@ def edit_book(book_id): ...@@ -612,7 +612,7 @@ def edit_book(book_id):
error = helper.update_dir_stucture(edited_books_id, config.config_calibre_dir, input_authors[0]) error = helper.update_dir_stucture(edited_books_id, config.config_calibre_dir, input_authors[0])
if not error: if not error:
if to_save["cover_url"]: if "cover_url" in to_save:
if not current_user.role_upload() and to_save["cover_url"] != "": if not current_user.role_upload() and to_save["cover_url"] != "":
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)
......
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