From 821636908fbe996960b8caca67bb9c0f3b27811f Mon Sep 17 00:00:00 2001 From: Aiirondev Date: Fri, 14 Aug 2026 11:51:10 +0200 Subject: [PATCH] changes to the user authentification --- Web/app.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/Web/app.py b/Web/app.py index bd479fa..93670a7 100755 --- a/Web/app.py +++ b/Web/app.py @@ -824,13 +824,10 @@ 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)) - admin_home_allowed = _page_access_allowed(permissions, 'home_admin') and _action_access_allowed(permissions, 'can_manage_settings') for candidate in ('my_borrowed_items', 'tutorial_page', 'notifications_view', 'impressum', 'home_admin'): if current_endpoint and candidate == current_endpoint: continue - if candidate == 'home_admin' and is_admin_user and not admin_home_allowed: - continue if _page_access_allowed(permissions, candidate): return candidate return 'logout'