From bed1b243407618165ba7dd2efcca267628adcabf Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Thu, 24 Sep 2020 10:54:02 +0200 Subject: [PATCH] Fixes from test of upload restrictions --- cps/editbooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/editbooks.py b/cps/editbooks.py index cf2c69f6..7655d104 100644 --- a/cps/editbooks.py +++ b/cps/editbooks.py @@ -612,7 +612,7 @@ def edit_book(book_id): error = helper.update_dir_stucture(edited_books_id, config.config_calibre_dir, input_authors[0]) 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"] != "": return "", (403) result, error = helper.save_cover_from_url(to_save["cover_url"], book.path)