This commit is contained in:
Karel Pičman 2023-11-15 13:58:06 +01:00
parent 38dc4b1cfa
commit 6cd6cb078d

View File

@ -167,6 +167,7 @@ class DmsfMailer < Mailer
# force_notification = true => approval workflow's notifications # force_notification = true => approval workflow's notifications
def self.get_notify_users(project, file, force_notification: false) def self.get_notify_users(project, file, force_notification: false)
return [] unless project.active? return [] unless project.active?
# Notifications # Notifications
if (force_notification && Setting.notified_events.include?('dmsf_workflow_plural')) || if (force_notification && Setting.notified_events.include?('dmsf_workflow_plural')) ||
(Setting.notified_events.include?('dmsf_legacy_notifications') && file&.notify?) (Setting.notified_events.include?('dmsf_legacy_notifications') && file&.notify?)