From 8f34e105c059575a9c75e43468345e3651210b81 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 17 Apr 2020 12:14:50 +0200 Subject: treewide: add ACL annotations to menu entries Signed-off-by: Jo-Philipp Wich --- .../root/usr/share/luci/menu.d/luci-mod-network.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'modules/luci-mod-network/root/usr/share') 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 670f2c1a49..188c695f3f 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" ] } } } -- cgit v1.2.3