summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2023-10-25 23:15:16 +0200
committerJo-Philipp Wich <jo@mein.io>2023-10-25 23:15:16 +0200
commit575ce5512df534b52185af877d26192adde6a9b5 (patch)
tree89e9b7a8b78baf0de2315996d9f7623f7a83aeb4 /modules/luci-mod-status/root
parentefcd4879781ee6c428b467052957534a7919d36d (diff)
luci-mod-status: add ACL to allow access to getBuiltinEthernetPorts
Fixes: ed059e4cd3 ("luci-mod-status: 29_ports.js: attempt to use getBuiltinEthernetPorts") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-status/root')
-rw-r--r--modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json b/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json
index 83ca325969..20cd23bb6c 100644
--- a/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json
+++ b/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json
@@ -37,6 +37,15 @@
}
},
+ "luci-mod-status-index-ports": {
+ "description": "Grant access to port status display",
+ "read": {
+ "ubus": {
+ "luci": [ "getBuiltinEthernetPorts" ]
+ }
+ }
+ },
+
"luci-mod-status-index-wifi": {
"description": "Grant access to wireless status display",
"read": {