summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ocserv/luasrc/controller
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-19 17:14:58 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-19 17:17:26 +0200
commit74da73b012a7ac271d683f11d98de170215ae661 (patch)
treeeb0f31ad31b09b33b8166fdcaec9c57b86f01a47 /applications/luci-app-ocserv/luasrc/controller
parent760763a7b5da42860c6c2d63478859bb02fa9104 (diff)
applications: add ACL dependency annotations to legacy controllers
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-ocserv/luasrc/controller')
-rw-r--r--applications/luci-app-ocserv/luasrc/controller/ocserv.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/applications/luci-app-ocserv/luasrc/controller/ocserv.lua b/applications/luci-app-ocserv/luasrc/controller/ocserv.lua
index f41b481038..3127f73c62 100644
--- a/applications/luci-app-ocserv/luasrc/controller/ocserv.lua
+++ b/applications/luci-app-ocserv/luasrc/controller/ocserv.lua
@@ -13,6 +13,7 @@ function index()
page = entry({"admin", "vpn", "ocserv"}, alias("admin", "vpn", "ocserv", "main"),
_("OpenConnect VPN"))
page.dependent = true
+ page.acl_depends = { "luci-app-ocserv" }
page = entry({"admin", "vpn", "ocserv", "main"},
cbi("ocserv/main"),