Rubocop
This commit is contained in:
parent
38dc4b1cfa
commit
6cd6cb078d
@ -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?)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user