From f2b2e5d6e79c8b183a0b1a4bf397a54c3c82474d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 25 May 2026 22:32:06 +0800 Subject: [PATCH] fix: set shell_theme.css/js to 'any' role (static resources need public access) --- scripts/load_path.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/load_path.py b/scripts/load_path.py index f23cca7..38dda7c 100644 --- a/scripts/load_path.py +++ b/scripts/load_path.py @@ -31,10 +31,10 @@ paths = [ # Menu — must be any so unauthenticated users can see nav ("/dashboard_for_sage/menu.ui", "any"), - # Shell / theme files + # Shell / theme files — CSS/JS must be 'any' (static resources loaded before auth) ("/dashboard_for_sage/shell.ui", "logined"), - ("/dashboard_for_sage/shell_theme.css", "logined"), - ("/dashboard_for_sage/shell_theme.js", "logined"), + ("/dashboard_for_sage/shell_theme.css", "any"), + ("/dashboard_for_sage/shell_theme.js", "any"), # Global menu ("/dashboard_for_sage/global_menu.ui", "logined"),