diff --git a/pkg/notifications/database.go b/pkg/notifications/database.go index 5979e3321..94e679e07 100644 --- a/pkg/notifications/database.go +++ b/pkg/notifications/database.go @@ -68,6 +68,7 @@ func GetNotificationsForUser(s *xorm.Session, notifiableID int64, limit, start i func CanMarkNotificationAsRead(s *xorm.Session, notification *DatabaseNotification, notifiableID int64) (can bool, err error) { can, err = s. Where("notifiable_id = ? AND id = ?", notifiableID, notification.ID). + NoAutoCondition(). Get(notification) return }