From 4d70990ef649a07d0f5d9e49ec1e465adfef8c64 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 19 May 2020 12:28:19 +0200 Subject: luci-app-vpnbypass: don't clobber permissions of VPN menu Ref: https://github.com/openwrt/luci/issues/4066 Signed-off-by: Jo-Philipp Wich --- applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'applications/luci-app-vpnbypass') 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 -- cgit v1.2.3