luci-mod-status: add ACL to allow access to getBuiltinEthernetPorts
authorJo-Philipp Wich <jo@mein.io>
Wed, 25 Oct 2023 21:15:16 +0000 (23:15 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 25 Oct 2023 21:15:16 +0000 (23:15 +0200)
Fixes: ed059e4cd3 ("luci-mod-status: 29_ports.js: attempt to use getBuiltinEthernetPorts")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json

index 83ca3259696a839c5e68ee35fbb4156558940a02..20cd23bb6c9f5d92d8f6b14206355d05c5a36d62 100644 (file)
                }
        },
 
+       "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": {