Skip to content

Commit

Permalink
Merge pull request #51 from Acris/master
Browse files Browse the repository at this point in the history
Fix luci access issue
  • Loading branch information
aa65535 committed Jun 25, 2021
2 parents d9d16bd + df37c80 commit 18027d8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion files/luci/controller/dns-forwarder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ function index()
return
end

entry({"admin", "services", "dns-forwarder"}, cbi("dns-forwarder"), _("DNS-Forwarder"), 60).dependent = true
page = entry({"admin", "services", "dns-forwarder"},
cbi("dns-forwarder"),
_("DNS-Forwarder"), 60)
page.dependent = true
page.acl_depends = { "luci-app-dns-forwarder" }
end
6 changes: 5 additions & 1 deletion files/luci/controller/redsocks2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ function index()
return
end

entry({"admin", "services", "redsocks2"}, cbi("redsocks2"), _("RedSocks2"), 72).dependent = true
page = entry({"admin", "services", "redsocks2"},
cbi("redsocks2"),
_("RedSocks2"), 72)
page.dependent = true
page.acl_depends = { "luci-app-redsocks2" }
end
6 changes: 5 additions & 1 deletion files/luci/controller/shadowvpn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ function index()
return
end

entry({"admin", "services", "shadowvpn"}, cbi("shadowvpn"), _("ShadowVPN"), 76).dependent = true
page = entry({"admin", "services", "shadowvpn"},
cbi("shadowvpn"),
_("ShadowVPN"), 76)
page.dependent = true
page.acl_depends = { "luci-app-shadowvpn" }
end

0 comments on commit 18027d8

Please sign in to comment.