fix serwowanie toasts.js i error handlery

This commit is contained in:
Mateusz Gruszczyński
2025-07-10 23:11:35 +02:00
parent c219cd2691
commit 120b08efd0

3
app.py
View File

@@ -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' \