diff options
Diffstat (limited to 'applications/luci-app-lxc/luasrc/controller/lxc.lua')
-rw-r--r-- | applications/luci-app-lxc/luasrc/controller/lxc.lua | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/applications/luci-app-lxc/luasrc/controller/lxc.lua b/applications/luci-app-lxc/luasrc/controller/lxc.lua index 9432110104..6fa1add0f8 100644 --- a/applications/luci-app-lxc/luasrc/controller/lxc.lua +++ b/applications/luci-app-lxc/luasrc/controller/lxc.lua @@ -30,12 +30,27 @@ function index() page.target = cbi("lxc") page.title = _("LXC Containers") page.order = 70 + page.acl_depends = { "luci-app-lxc" } - entry({"admin", "services", "lxc_create"}, call("lxc_create"), nil).leaf = true - entry({"admin", "services", "lxc_action"}, call("lxc_action"), nil).leaf = true - entry({"admin", "services", "lxc_get_downloadable"}, call("lxc_get_downloadable"), nil).leaf = true - entry({"admin", "services", "lxc_configuration_get"}, call("lxc_configuration_get"), nil).leaf = true - entry({"admin", "services", "lxc_configuration_set"}, call("lxc_configuration_set"), nil).leaf = true + page = entry({"admin", "services", "lxc_create"}, call("lxc_create"), nil) + page.acl_depends = { "luci-app-lxc" } + page.leaf = true + + page = entry({"admin", "services", "lxc_action"}, call("lxc_action"), nil) + page.acl_depends = { "luci-app-lxc" } + page.leaf = true + + page = entry({"admin", "services", "lxc_get_downloadable"}, call("lxc_get_downloadable"), nil) + page.acl_depends = { "luci-app-lxc" } + page.leaf = true + + page = entry({"admin", "services", "lxc_configuration_get"}, call("lxc_configuration_get"), nil) + page.acl_depends = { "luci-app-lxc" } + page.leaf = true + + page = entry({"admin", "services", "lxc_configuration_set"}, call("lxc_configuration_set"), nil) + page.acl_depends = { "luci-app-lxc" } + page.leaf = true end function lxc_get_downloadable() |