mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-25 02:57:22 +00:00
Require edit permissions to edit books, even via ajax
This commit is contained in:
parent
5792838333
commit
e7f7775efa
@ -930,6 +930,7 @@ def convert_bookformat(book_id):
|
|||||||
|
|
||||||
@editbook.route("/ajax/editbooks/<param>", methods=['POST'])
|
@editbook.route("/ajax/editbooks/<param>", methods=['POST'])
|
||||||
@login_required_if_no_ano
|
@login_required_if_no_ano
|
||||||
|
@edit_required
|
||||||
def edit_list_book(param):
|
def edit_list_book(param):
|
||||||
vals = request.form.to_dict()
|
vals = request.form.to_dict()
|
||||||
# calibre_db.update_title_sort(config)
|
# calibre_db.update_title_sort(config)
|
||||||
|
Loading…
Reference in New Issue
Block a user