diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-05-19 12:28:19 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-05-24 17:28:37 +0200 |
commit | 4d70990ef649a07d0f5d9e49ec1e465adfef8c64 (patch) | |
tree | ab66b8a37ffb6ee80a714f2adb794bb841a8b4df /applications/luci-app-vpnbypass | |
parent | 32126e13c5aeda30dd2891ed71d981023cb78ba9 (diff) |
luci-app-vpnbypass: 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-vpnbypass')
-rw-r--r-- | applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua b/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua index d5f4a8cafd..0de6ff6481 100644 --- a/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua +++ b/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua @@ -3,9 +3,8 @@ function index() if nixio.fs.access("/etc/config/vpnbypass") then local e = entry({"admin", "vpn"}, firstchild(), _("VPN"), 60) e.dependent = false - e.acl_depends = { "luci-app-vpnbypass" } - entry({"admin", "vpn", "vpnbypass"}, cbi("vpnbypass"), _("VPN Bypass")) + entry({"admin", "vpn", "vpnbypass"}, cbi("vpnbypass"), _("VPN Bypass")).acl_depends = { "luci-app-vpnbypass" } entry({"admin", "vpn", "vpnbypass", "action"}, call("vpnbypass_action"), nil).leaf = true end end |