summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-cshark/luasrc/controller
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-19 17:14:58 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-19 17:17:26 +0200
commit74da73b012a7ac271d683f11d98de170215ae661 (patch)
treeeb0f31ad31b09b33b8166fdcaec9c57b86f01a47 /applications/luci-app-cshark/luasrc/controller
parent760763a7b5da42860c6c2d63478859bb02fa9104 (diff)
applications: add ACL dependency annotations to legacy controllers
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-cshark/luasrc/controller')
-rw-r--r--applications/luci-app-cshark/luasrc/controller/cshark.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/applications/luci-app-cshark/luasrc/controller/cshark.lua b/applications/luci-app-cshark/luasrc/controller/cshark.lua
index 43410a0045..a5812a6519 100644
--- a/applications/luci-app-cshark/luasrc/controller/cshark.lua
+++ b/applications/luci-app-cshark/luasrc/controller/cshark.lua
@@ -18,20 +18,26 @@ function index()
page.target = cbi("admin_network/cshark")
page.title = _("CloudShark")
page.order = 70
+ page.acl_depends = { "luci-app-cshark" }
page = entry({"admin", "network", "cshark_iface_dump_start"}, call("cshark_iface_dump_start"), nil)
+ page.acl_depends = { "luci-app-cshark" }
page.leaf = true
page = entry({"admin", "network", "cshark_iface_dump_stop"}, call("cshark_iface_dump_stop"), nil)
+ page.acl_depends = { "luci-app-cshark" }
page.leaf = true
page = entry({"admin", "network", "cshark_check_status"}, call("cshark_check_status"), nil)
+ page.acl_depends = { "luci-app-cshark" }
page.leaf = true
page = entry({"admin", "network", "cshark_link_list_get"}, call("cshark_link_list_get"), nil)
+ page.acl_depends = { "luci-app-cshark" }
page.leaf = true
page = entry({"admin", "network", "cshark_link_list_clear"}, call("cshark_link_list_clear"), nil)
+ page.acl_depends = { "luci-app-cshark" }
page.leaf = true
end