From 120b08efd0e4aad85cf7e5c1062b362eecb54dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 10 Jul 2025 23:11:35 +0200 Subject: [PATCH] fix serwowanie toasts.js i error handlery --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index 450b156..206b7ea 100644 --- a/app.py +++ b/app.py @@ -254,6 +254,9 @@ def inject_has_authorized_cookie(): def require_system_password(): if request.endpoint is None: return + + if request.endpoint in ['forbidden', 'not_found', 'internal_error', 'system_auth']: + return if 'authorized' not in request.cookies \ and request.endpoint != 'system_auth' \