From: Florian Eckert Date: Thu, 23 Apr 2020 13:36:49 +0000 (+0200) Subject: luci-app-dockerman: add ACL dependency annotations" X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5f776df12b1eaa242248c43486084b19e5d5730a;p=oweals%2Fluci.git luci-app-dockerman: add ACL dependency annotations" Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-dockerman/luasrc/controller/dockerman.lua b/applications/luci-app-dockerman/luasrc/controller/dockerman.lua index 939edd95c..aabad3360 100644 --- a/applications/luci-app-dockerman/luasrc/controller/dockerman.lua +++ b/applications/luci-app-dockerman/luasrc/controller/dockerman.lua @@ -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")