diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 15:40:28 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 15:40:28 +0000 |
commit | b595cb0c1dec83de5bdee18284abe86614bed33b (patch) | |
tree | 8c3d4540f193c5ff98019352f554e921b3a41a72 /app/services/notification_recipients | |
parent | 2f9104a328fc8a4bddeaa4627b595166d24671d0 (diff) | |
download | gitlab-ce-b595cb0c1dec83de5bdee18284abe86614bed33b.tar.gz |
Add latest changes from gitlab-org/gitlab@15-2-stable-eev15.2.0-rc42
Diffstat (limited to 'app/services/notification_recipients')
-rw-r--r-- | app/services/notification_recipients/builder/base.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/services/notification_recipients/builder/base.rb b/app/services/notification_recipients/builder/base.rb index 4f1bb0dc877..0a7f25f1af3 100644 --- a/app/services/notification_recipients/builder/base.rb +++ b/app/services/notification_recipients/builder/base.rb @@ -47,6 +47,8 @@ module NotificationRecipients end users = Array(users).compact + preload_users_namespace_bans(users) + recipients.concat(users.map { |u| make_recipient(u, type, reason) }) end # rubocop: enable CodeReuse/ActiveRecord @@ -240,6 +242,14 @@ module NotificationRecipients add_recipients(label.subscribers(project), :subscription, NotificationReason::SUBSCRIBED) end end + + private + + def preload_users_namespace_bans(_users) + # overridden in EE + end end end end + +NotificationRecipients::Builder::Base.prepend_mod_with('NotificationRecipients::Builder::Base') |