Fixed two issues preventing components page from loading: 1. Added getTheme() method to theme.js - components.js was calling Theme.getTheme() which didn't exist - Added method to return theme data from SecuBox 2. Updated ACL to grant access to new methods - Added get_components and get_components_by_category to read permissions - Added luci.secubox methods (modules, modules_by_category, get_theme) - Resolves "Access denied" error (-32002) This fixes the "Theme.getTheme is not a function" and "Access denied" errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
37 lines
613 B
JSON
37 lines
613 B
JSON
{
|
|
"luci-app-system-hub": {
|
|
"description": "System Hub - Central Control Dashboard",
|
|
"read": {
|
|
"ubus": {
|
|
"luci.system-hub": [
|
|
"status",
|
|
"get_system_info",
|
|
"get_health",
|
|
"get_components",
|
|
"get_components_by_category",
|
|
"list_services",
|
|
"get_logs",
|
|
"get_storage",
|
|
"get_settings"
|
|
],
|
|
"luci.secubox": [
|
|
"modules",
|
|
"modules_by_category",
|
|
"get_theme"
|
|
]
|
|
}
|
|
},
|
|
"write": {
|
|
"ubus": {
|
|
"luci.system-hub": [
|
|
"service_action",
|
|
"backup_config",
|
|
"restore_config",
|
|
"reboot",
|
|
"save_settings"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|