luci-app-cpufreq: add ACL dependency annotations

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
This commit is contained in:
CN_SZTL 2021-02-19 23:01:32 +08:00
parent f75476b5ea
commit 371eb31ee0
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -5,6 +5,9 @@ function index()
if not nixio.fs.access("/etc/config/cpufreq") then
return
end
entry({"admin", "system", "cpufreq"}, cbi("cpufreq"), _("CPU Freq"), 900).dependent=false
local page
page = entry({"admin", "system", "cpufreq"}, cbi("cpufreq"), _("CPU Freq"), 900)
page.dependent = false
page.acl_depends = { "luci-app-cpufreq" }
end