From 21ad639081facbb525b72cef616ab3c8b947d3fb Mon Sep 17 00:00:00 2001 From: Aiirondev Date: Fri, 14 Aug 2026 20:20:59 +0200 Subject: [PATCH] changes to make the default redirect endpoint in chase of page authentication error --- Web/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Web/app.py b/Web/app.py index c781e76..48b4a5d 100755 --- a/Web/app.py +++ b/Web/app.py @@ -825,9 +825,8 @@ def _action_access_allowed(permissions, action_key): def _permission_denied_fallback_endpoint(permissions, current_endpoint=None): username = session.get('username') - is_admin_user = bool(username and us.check_admin(username)) - for candidate in ('my_borrowed_items', 'tutorial_page', 'notifications_view', 'impressum', 'home_admin'): + for candidate in ('home_admin', 'my_borrowed_items', 'tutorial_page', 'notifications_view', 'impressum'): if current_endpoint and candidate == current_endpoint: continue if _page_access_allowed(permissions, candidate):