luci-app-dockerman: add ACL dependency annotations"
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 23 Apr 2020 13:36:49 +0000 (15:36 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 10 Jun 2020 06:44:58 +0000 (08:44 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-dockerman/luasrc/controller/dockerman.lua

index 939edd95c1ea79fc75de26f4c7bc56967b11d7d0..aabad3360d29b7819b87ede9ecf2aacaeb7c89c2 100644 (file)
@@ -10,7 +10,10 @@ module("luci.controller.dockerman",package.seeall)
 
 function index()
 
-  entry({"admin", "docker"}, firstchild(), "Docker", 40).dependent = false
+  local e = entry({"admin", "docker"}, firstchild(), "Docker", 40)
+  e.dependent = false
+  e.acl_depends = { "luci-app-dockerman" }
+
   entry({"admin","docker","overview"},cbi("dockerman/overview"),_("Overview"),0).leaf=true
 
   local remote = luci.model.uci.cursor():get("dockerman", "local", "remote_endpoint")