From b73ca28c427515b32516fbeafc2e6450d04737bd Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 19 May 2020 12:27:44 +0200 Subject: [PATCH] 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 (cherry picked from commit 4dcab51ca522407cf63a51883bc6505cf24fbd64) --- .../luasrc/controller/vpn-policy-routing.lua | 3 +-- 1 file changed, 1 insertion(+), 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 -- 2.25.1