diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-05-19 12:27:44 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-05-24 17:28:37 +0200 |
commit | 32126e13c5aeda30dd2891ed71d981023cb78ba9 (patch) | |
tree | 1e5ac7b64eb7a1fcf882c002fde7f3bd231103c7 /applications/luci-app-vpn-policy-routing | |
parent | edeb146eb0d22430625a77e8557b8d16eedad759 (diff) |
luci-app-vpn-policy-routing: don't clobber permissions of VPN menu
Ref: https://github.com/openwrt/luci/issues/4066
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-vpn-policy-routing')
-rw-r--r-- | applications/luci-app-vpn-policy-routing/luasrc/controller/vpn-policy-routing.lua | 3 |
1 files changed, 1 insertions, 2 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 d8393439c..2daac795d 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 @@ -3,9 +3,8 @@ function index() if nixio.fs.access("/etc/config/vpn-policy-routing") then 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"}, cbi("vpn-policy-routing"), _("VPN Policy Routing")).acl_depends = { "luci-app-vpn-policy-routing" } entry({"admin", "vpn", "vpn-policy-routing", "action"}, call("vpn_policy_routing_action"), nil).leaf = true end end |