From 40641594ac03688ea67f0cd18c400f285d62db4b Mon Sep 17 00:00:00 2001 From: Lars Date: Sun, 7 Jun 2026 09:24:16 +0200 Subject: [PATCH] Add admin rights router to access layer hints exemption list - Included "admin_rights.py" in the EXEMPT_ROUTERS frozenset to ensure proper access control for superadmin roles. - This change enhances the management of admin capabilities and aligns with recent updates to the admin rights management system. --- backend/scripts/check_access_layer_hints.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/scripts/check_access_layer_hints.py b/backend/scripts/check_access_layer_hints.py index 7edd264..30ad5ff 100644 --- a/backend/scripts/check_access_layer_hints.py +++ b/backend/scripts/check_access_layer_hints.py @@ -27,6 +27,7 @@ EXEMPT_ROUTERS: frozenset[str] = frozenset( "ai_prompts_admin.py", # Superadmin ai_prompts; require_auth + is_superadmin — kein Vereinsmandant "exercise_enrichment_admin.py", # Superadmin Batch-Übungs-Anreicherung KI; require_auth + is_superadmin — kein Vereinsmandant "admin_user_content.py", # Superadmin Moderation nutzerangelegter Inhalte; require_auth + is_superadmin — kein Vereinsmandant + "admin_rights.py", # Superadmin Rollen/Rechte (Capabilities, Kontingent-Bypass, Pläne); require_auth + is_superadmin — kein Vereinsmandant "catalogs.py", "skills.py", "maturity_models.py",