summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-wifischedule/luasrc/controller/wifischedule/wifi_schedule.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-wifischedule/luasrc/controller/wifischedule/wifi_schedule.lua')
-rw-r--r--applications/luci-app-wifischedule/luasrc/controller/wifischedule/wifi_schedule.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/luci-app-wifischedule/luasrc/controller/wifischedule/wifi_schedule.lua b/applications/luci-app-wifischedule/luasrc/controller/wifischedule/wifi_schedule.lua
index 261cf36d0f..b61244a519 100644
--- a/applications/luci-app-wifischedule/luasrc/controller/wifischedule/wifi_schedule.lua
+++ b/applications/luci-app-wifischedule/luasrc/controller/wifischedule/wifi_schedule.lua
@@ -23,7 +23,11 @@ function index()
if not nixio.fs.access("/etc/config/wifi_schedule") then
return
end
- entry({"admin", "services", "wifi_schedule"}, firstchild(), _("Wifi Schedule"), 60).dependent=false
+
+ local e = entry({"admin", "services", "wifi_schedule"}, firstchild(), _("Wifi Schedule"), 60)
+ e.acl_depends = { "luci-app-wifischedule" }
+ e.dependent = false
+
entry({"admin", "services", "wifi_schedule", "tab_from_cbi"}, cbi("wifischedule/wifi_schedule"), _("Schedule"), 1)
entry({"admin", "services", "wifi_schedule", "wifi_schedule"}, call("wifi_schedule_log"), _("View Logfile"), 2)
entry({"admin", "services", "wifi_schedule", "cronjob"}, call("view_crontab"), _("View Cron Jobs"), 3)