fix: set shell_theme.css/js to 'any' role (static resources need public access)

This commit is contained in:
yumoqing 2026-05-25 22:32:06 +08:00
parent fd8443f445
commit f2b2e5d6e7

View File

@ -31,10 +31,10 @@ paths = [
# Menu — must be any so unauthenticated users can see nav # Menu — must be any so unauthenticated users can see nav
("/dashboard_for_sage/menu.ui", "any"), ("/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.ui", "logined"),
("/dashboard_for_sage/shell_theme.css", "logined"), ("/dashboard_for_sage/shell_theme.css", "any"),
("/dashboard_for_sage/shell_theme.js", "logined"), ("/dashboard_for_sage/shell_theme.js", "any"),
# Global menu # Global menu
("/dashboard_for_sage/global_menu.ui", "logined"), ("/dashboard_for_sage/global_menu.ui", "logined"),