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: https://git.librecmc.org/?a=commitdiff_plain;h=8d89f0d4e6843a68fd88b8e1a1e60240414f2229;p=oweals%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 (cherry picked from commit 7f4de85b0b9c4f6bd9a19bf5a44af3825b31e8c1) --- diff --git a/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua b/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua index d5f4a8caf..0de6ff648 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