Эх сурвалжийг харах

add ACL depends

Signed-off-by: Tianling Shen <[email protected]>
Tianling Shen 4 жил өмнө
parent
commit
75a7f7d32f

+ 2 - 2
Makefile

@@ -1,6 +1,6 @@
 #
 # Copyright (C) 2021 ImmortalWrt
-# (https://project-openwrt.eu.org)
+# (https://immortalwrt.org)
 #
 # This is free software, licensed under the GNU General Public License v3.
 # See /LICENSE for more information.
@@ -16,7 +16,7 @@ PKG_NAME:=luci-app-unblockneteasemusic
 PKG_VERSION:=2.8
 PKG_RELEASE:=10
 
-PKG_MAINTAINER:=CN_SZTL <cnsztl@project-openwrt.eu.org>
+PKG_MAINTAINER:=CN_SZTL <cnsztl@immortalwrt.org>
 
 include $(TOPDIR)/feeds/luci/luci.mk
 

+ 4 - 1
luasrc/controller/unblockneteasemusic.lua

@@ -9,7 +9,10 @@ function index()
 		return
 	end
 
-	entry({"admin", "services", "unblockneteasemusic"},firstchild(), _("解除网易云音乐播放限制"), 50).dependent = false
+	local page
+	page = entry({"admin", "services", "unblockneteasemusic"},firstchild(), _("解除网易云音乐播放限制"), 50)
+	page.dependent = false
+	page.acl_depends = { "luci-app-unblockneteasemusic" }
 
 	entry({"admin", "services", "unblockneteasemusic", "general"},cbi("unblockneteasemusic/unblockneteasemusic"), _("基本设定"), 1)
 	entry({"admin", "services", "unblockneteasemusic", "upgrade"},form("unblockneteasemusic/unblockneteasemusic_upgrade"), _("更新组件"), 2).leaf = true