Skip to content

Commit

Permalink
luci access fix
Browse files Browse the repository at this point in the history
  • Loading branch information
supertcy committed Jul 12, 2020
1 parent 3166b1c commit 5d7de46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -102,6 +102,8 @@ define Package/openwrt-dist-luci/install
$(INSTALL_DATA) $(PKG_BUILD_DIR)/$(2).*.lmo $(1)/usr/lib/lua/luci/i18n/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi
$(INSTALL_DATA) ./files/luci/model/cbi/$(2).lua $(1)/usr/lib/lua/luci/model/cbi/
$(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d
$(INSTALL_DATA) ./files/usr/share/rpcd/acl.d/luci-$(2).json $(1)/usr/share/rpcd/acl.d/
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) $(PKG_BUILD_DIR)/luci-$(2) $(1)/etc/uci-defaults/luci-$(2)
endef
Expand Down
6 changes: 5 additions & 1 deletion files/luci/controller/chinadns.lua
Expand Up @@ -9,5 +9,9 @@ function index()
return
end

entry({"admin", "services", "chinadns"}, cbi("chinadns"), _("ChinaDNS"), 70).dependent = true
page = entry({"admin", "services", "chinadns"},
cbi("chinadns"),
_("ChinaDNS"), 70)
page.dependent = true
page.acl_depends = { "luci-app-chinadns" }
end

0 comments on commit 5d7de46

Please sign in to comment.