mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 08:40:20 +00:00
fix: notifier groups cache not initialized (#995)
This commit is contained in:
1 parent
f8f4975090
commit
7cd8387db8
2 files changed
+7
No files matched your search
@@ -163,6 +163,7 @@ func batchDeleteNotification(c *gin.Context) (any, error) {
|
||||
for _, nid := range n {
|
||||
if ns, ok := singleton.NotificationMap[nid]; ok {
|
||||
if !ns.HasPermission(c) {
|
||||
singleton.NotificationsLock.RUnlock()
|
||||
return nil, singleton.Localizer.ErrorT("permission denied")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user