fix: notifier groups cache not initialized (#995)

This commit is contained in:
UUBulb authored and GitHub committed 2025-02-17 20:14:38 +08:00
1 parent f8f4975090
commit 7cd8387db8
2 files changed
+7

No files matched your search

+1
View File
@@ -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")
}
}