fix(client-guardian): correct RPC namespace and add missing ACL methods
- Fixed RPC namespace from "client-guardian" to "luci.client-guardian" - Added missing read methods: get_client, list_sessions, get_policy - Added missing write methods: set_policy, authorize_client, deauthorize_client - Resolves "Access denied" errors for zones and other endpoints 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
9177bbbfdf
commit
36aea4ffbd
@ -3,7 +3,7 @@
|
||||
"description": "Grant access to LuCI Client Guardian Dashboard",
|
||||
"read": {
|
||||
"ubus": {
|
||||
"client-guardian": [ "status", "clients", "zones", "parental", "portal", "alerts", "logs" ],
|
||||
"luci.client-guardian": [ "status", "clients", "get_client", "zones", "parental", "portal", "alerts", "logs", "list_sessions", "get_policy" ],
|
||||
"system": [ "info", "board" ],
|
||||
"network.interface": [ "status", "dump" ],
|
||||
"file": [ "read", "stat" ]
|
||||
@ -18,7 +18,7 @@
|
||||
},
|
||||
"write": {
|
||||
"ubus": {
|
||||
"client-guardian": [ "approve_client", "ban_client", "quarantine_client", "update_client", "update_zone", "update_portal", "send_test_alert" ]
|
||||
"luci.client-guardian": [ "approve_client", "ban_client", "quarantine_client", "update_client", "update_zone", "update_portal", "send_test_alert", "set_policy", "authorize_client", "deauthorize_client" ]
|
||||
},
|
||||
"uci": [ "client-guardian" ]
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user