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-unbound/luasrc/controller/unbound.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-unbound/luasrc/controller/unbound.lua') diff --git a/applications/luci-app-unbound/luasrc/controller/unbound.lua b/applications/luci-app-unbound/luasrc/controller/unbound.lua index 32879cb9f2..f60feaa1fb 100644 --- a/applications/luci-app-unbound/luasrc/controller/unbound.lua +++ b/applications/luci-app-unbound/luasrc/controller/unbound.lua @@ -18,8 +18,9 @@ function index() -- Expanded View - entry({"admin", "services", "unbound"}, - firstchild(), _("Recursive DNS")).dependent = false + local e = entry({"admin", "services", "unbound"}, firstchild(), _("Recursive DNS")) + e.dependent = false + e.acl_depends = { "luci-app-unbound" } -- UCI Tab(s) entry({"admin", "services", "unbound", "configure"}, -- cgit v1.2.3