diff options
Diffstat (limited to 'applications/luci-app-vpn-policy-routing/luasrc/controller')
-rw-r--r-- | applications/luci-app-vpn-policy-routing/luasrc/controller/vpn-policy-routing.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/applications/luci-app-vpn-policy-routing/luasrc/controller/vpn-policy-routing.lua b/applications/luci-app-vpn-policy-routing/luasrc/controller/vpn-policy-routing.lua index f4af659aad..d8393439c1 100644 --- a/applications/luci-app-vpn-policy-routing/luasrc/controller/vpn-policy-routing.lua +++ b/applications/luci-app-vpn-policy-routing/luasrc/controller/vpn-policy-routing.lua @@ -1,7 +1,10 @@ module("luci.controller.vpn-policy-routing", package.seeall) function index() if nixio.fs.access("/etc/config/vpn-policy-routing") then - entry({"admin", "vpn"}, firstchild(), _("VPN"), 60).dependent=false + local e = entry({"admin", "vpn"}, firstchild(), _("VPN"), 60) + e.dependent = false + e.acl_depends = { "luci-app-vpn-policy-routing" } + entry({"admin", "vpn", "vpn-policy-routing"}, cbi("vpn-policy-routing"), _("VPN Policy Routing")) entry({"admin", "vpn", "vpn-policy-routing", "action"}, call("vpn_policy_routing_action"), nil).leaf = true end |