diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-04-17 12:14:50 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-04-17 12:40:31 +0200 |
commit | 8f34e105c059575a9c75e43468345e3651210b81 (patch) | |
tree | 1cfb6f0f5b0df7e34bc5942760e8dfb1e3d53196 /modules/luci-mod-network/root/usr | |
parent | 01d8283ecea730191ce41302acb7ecd1aaf0631f (diff) |
treewide: add ACL annotations to menu entries
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/root/usr')
-rw-r--r-- | modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json b/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json index 670f2c1a4..188c695f3 100644 --- a/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json +++ b/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json @@ -7,6 +7,7 @@ "path": "network/switch" }, "depends": { + "acl": [ "luci-mod-network-config" ], "fs": { "/sbin/swconfig": "executable" }, "uci": { "network": { "@switch": true } } } @@ -20,6 +21,7 @@ "path": "network/wireless" }, "depends": { + "acl": [ "luci-mod-network-config" ], "uci": { "wireless": { "@wifi-device": true } } } }, @@ -38,6 +40,9 @@ "action": { "type": "view", "path": "network/interfaces" + }, + "depends": { + "acl": [ "luci-mod-network-config" ] } }, @@ -49,6 +54,7 @@ "path": "network/dhcp" }, "depends": { + "acl": [ "luci-mod-network-dhcp" ], "uci": { "dhcp": true } } }, @@ -61,6 +67,7 @@ "path": "network/hosts" }, "depends": { + "acl": [ "luci-mod-network-dhcp" ], "uci": { "dhcp": true } } }, @@ -71,6 +78,9 @@ "action": { "type": "view", "path": "network/routes" + }, + "depends": { + "acl": [ "luci-mod-network-config" ] } }, @@ -80,6 +90,9 @@ "action": { "type": "view", "path": "network/diagnostics" + }, + "depends": { + "acl": [ "luci-mod-network-diagnostics" ] } } } |