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-travelmate/luasrc/controller/travelmate.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'applications/luci-app-travelmate/luasrc/controller') diff --git a/applications/luci-app-travelmate/luasrc/controller/travelmate.lua b/applications/luci-app-travelmate/luasrc/controller/travelmate.lua index b201abf14d..fda9db16b2 100644 --- a/applications/luci-app-travelmate/luasrc/controller/travelmate.lua +++ b/applications/luci-app-travelmate/luasrc/controller/travelmate.lua @@ -14,7 +14,11 @@ function index() if not nixio.fs.access("/etc/config/travelmate") then return end - entry({"admin", "services", "travelmate"}, firstchild(), _("Travelmate"), 40).dependent = false + + local e = entry({"admin", "services", "travelmate"}, firstchild(), _("Travelmate"), 40) + e.dependent = false + e.acl_depends = { "luci-app-travelmate" } + entry({"admin", "services", "travelmate", "tab_from_cbi"}, cbi("travelmate/overview_tab", {hideresetbtn=true, hidesavebtn=true}), _("Overview"), 10).leaf = true entry({"admin", "services", "travelmate", "stations"}, template("travelmate/stations"), _("Wireless Stations"), 20).leaf = true entry({"admin", "services", "travelmate", "log"}, template("travelmate/logread"), _("View Logfile"), 30).leaf = true -- cgit v1.2.3