Fixed JavaScript errors in multiple modules by adding missing API functions: 1. auth-guardian: - Added getSessions() alias for listSessions compatibility 2. netifyd-dashboard: - Added getAllData() aggregating status, stats, flows, applications 3. wireguard-dashboard: - Added getAllData() aggregating status, peers, interfaces, traffic 4. network-modes: - Added getAllData() aggregating status, mode, available_modes, interfaces 5. netdata-dashboard: - Fixed ACL permissions: changed ubus object from 'netdata' to 'luci.netdata-dashboard' - Added missing RPC methods to ACL (netdata_status, netdata_alarms, netdata_info) - Added write permissions for service control methods Resolves: - TypeError: api.getSessions is not a function (auth-guardian) - TypeError: api.getAllData is not a function (netifyd, wireguard, network-modes) - RPC error -32002: Access denied (netdata-dashboard) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
36 lines
633 B
JSON
36 lines
633 B
JSON
{
|
|
"luci-app-netdata-dashboard": {
|
|
"description": "Grant access to LuCI Netdata Dashboard",
|
|
"read": {
|
|
"ubus": {
|
|
"luci.netdata-dashboard": [
|
|
"stats",
|
|
"cpu",
|
|
"memory",
|
|
"disk",
|
|
"network",
|
|
"processes",
|
|
"sensors",
|
|
"system",
|
|
"netdata_status",
|
|
"netdata_alarms",
|
|
"netdata_info"
|
|
],
|
|
"system": [ "info", "board" ],
|
|
"file": [ "read", "stat" ]
|
|
},
|
|
"uci": [ "netdata-dashboard" ]
|
|
},
|
|
"write": {
|
|
"ubus": {
|
|
"luci.netdata-dashboard": [
|
|
"restart_netdata",
|
|
"start_netdata",
|
|
"stop_netdata"
|
|
]
|
|
},
|
|
"uci": [ "netdata-dashboard" ]
|
|
}
|
|
}
|
|
}
|