From: Jo-Philipp Wich Date: Tue, 19 May 2020 10:28:19 +0000 (+0200) Subject: luci-app-vpnbypass: don't clobber permissions of VPN menu X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4d70990ef649a07d0f5d9e49ec1e465adfef8c64;p=project%2Fluci.git luci-app-vpnbypass: don't clobber permissions of VPN menu Ref: https://github.com/openwrt/luci/issues/4066 Signed-off-by: Jo-Philipp Wich --- 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