fix serwowanie toasts.js i error handlery
This commit is contained in:
3
app.py
3
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' \
|
||||
|
Reference in New Issue
Block a user