diff options
Diffstat (limited to 'app/services/notification_recipients/builder/base.rb')
-rw-r--r-- | app/services/notification_recipients/builder/base.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/services/notification_recipients/builder/base.rb b/app/services/notification_recipients/builder/base.rb index 3aa00c09ba2..81e6750a4ca 100644 --- a/app/services/notification_recipients/builder/base.rb +++ b/app/services/notification_recipients/builder/base.rb @@ -23,6 +23,11 @@ module NotificationRecipients raise 'abstract' end + # override if needed + def recipients_target + target + end + def project target.project end @@ -59,7 +64,7 @@ module NotificationRecipients project: project, group: group, custom_action: custom_action, - target: target, + target: recipients_target, acting_user: acting_user ) end |