1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-09-10 14:56:01 +00:00

fix: fixes 403 when using proxy auth

Resolves a 403 response when accessing /ajax/updateThumbnails from a
session authenticated by reverse proxy.

For some reason, the decorators are swapped on this route specifically,
but not the others. This brings the ordering to be consistent with other
routes. The login check should happen before the auth check now.
This commit is contained in:
Kamil Markowicz
2025-05-09 22:31:06 -04:00
parent 4e67a56ed2
commit 6f969ed6a6

View File

@@ -189,8 +189,8 @@ def reconnect():
@admi.route("/ajax/updateThumbnails", methods=['POST'])
@admin_required
@user_login_required
@admin_required
def update_thumbnails():
content = config.get_scheduled_task_settings()
if content['schedule_generate_book_covers']: