From 74da73b012a7ac271d683f11d98de170215ae661 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 19 Apr 2020 17:14:58 +0200 Subject: applications: add ACL dependency annotations to legacy controllers Signed-off-by: Jo-Philipp Wich --- applications/luci-app-banip/luasrc/controller/banip.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'applications/luci-app-banip/luasrc') diff --git a/applications/luci-app-banip/luasrc/controller/banip.lua b/applications/luci-app-banip/luasrc/controller/banip.lua index 6ada1d516..1befbe986 100644 --- a/applications/luci-app-banip/luasrc/controller/banip.lua +++ b/applications/luci-app-banip/luasrc/controller/banip.lua @@ -13,7 +13,11 @@ function index() if not nixio.fs.access("/etc/config/banip") then return end - entry({"admin", "services", "banip"}, firstchild(), _("banIP"), 40).dependent = false + + local e = entry({"admin", "services", "banip"}, firstchild(), _("banIP"), 40) + e.dependent = false + e.acl_depends = { "luci-app-banip" } + entry({"admin", "services", "banip", "tab_from_cbi"}, cbi("banip/overview_tab", {hideresetbtn=true, hidesavebtn=true}), _("Overview"), 10).leaf = true entry({"admin", "services", "banip", "ipset"}, template("banip/ipsetview"), _("IPSet-Lookup"), 20).leaf = true entry({"admin", "services", "banip", "ripe"}, template("banip/ripeview"), _("RIPE-Lookup"), 30).leaf = true -- cgit v1.2.3