immortalwrt/package/lean/luci-app-webadmin/luasrc/controller/webadmin.lua
msylgj d61bb995c4
treewide: add ACL dependency annotations to legacy controllers
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-21 14:48:55 +08:00

18 lines
403 B
Lua

-- Copyright 2018 lean <coolsnowwolf@gmail.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.webadmin", package.seeall)
function index()
if not nixio.fs.access("/etc/config/uhttpd") then
return
end
local page
page = entry({"admin", "system", "webadmin"}, cbi("webadmin"), _("Web Admin"), 1)
page.leaf = true
page.acl_depends = { "luci-app-webadmin" }
end