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 --- .../usr/share/luci/menu.d/luci-mod-system.json | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'modules/luci-mod-system/root/usr') diff --git a/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json b/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json index 4a65dec17a..90a7001b78 100644 --- a/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json +++ b/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json @@ -5,6 +5,9 @@ "action": { "type": "view", "path": "system/system" + }, + "depends": { + "acl": [ "luci-mod-system-config" ] } }, @@ -13,6 +16,9 @@ "order": 2, "action": { "type": "firstchild" + }, + "depends": { + "acl": [ "luci-mod-system-config", "luci-mod-system-ssh" ] } }, @@ -22,6 +28,9 @@ "action": { "type": "view", "path": "system/password" + }, + "depends": { + "acl": [ "luci-mod-system-config" ] } }, @@ -33,6 +42,7 @@ "path": "system/dropbear" }, "depends": { + "acl": [ "luci-mod-system-ssh" ], "uci": { "dropbear": true } } }, @@ -45,6 +55,7 @@ "path": "system/sshkeys" }, "depends": { + "acl": [ "luci-mod-system-ssh" ], "uci": { "dropbear": true } } }, @@ -55,6 +66,9 @@ "action": { "type": "view", "path": "system/startup" + }, + "depends": { + "acl": [ "luci-mod-system-init" ] } }, @@ -64,6 +78,9 @@ "action": { "type": "view", "path": "system/crontab" + }, + "depends": { + "acl": [ "luci-mod-system-cron" ] } }, @@ -75,6 +92,7 @@ "path": "system/mounts" }, "depends": { + "acl": [ "luci-mod-system-mounts" ], "fs": { "/sbin/block": "executable" } } }, @@ -87,6 +105,7 @@ "path": "system/leds" }, "depends": { + "acl": [ "luci-mod-system-config" ], "fs": { "/sys/class/leds": "directory" } } }, @@ -97,6 +116,9 @@ "action": { "type": "view", "path": "system/flash" + }, + "depends": { + "acl": [ "luci-mod-system-flash" ] } }, @@ -106,6 +128,9 @@ "action": { "type": "view", "path": "system/reboot" + }, + "depends": { + "acl": [ "luci-mod-system-reboot" ] } } } -- cgit v1.2.3