Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-06-11 23:44:45 +0300
committerStan Hu <stanhu@gmail.com>2019-06-12 22:55:25 +0300
commitede045820f6dca8cb5dbf37c88635da21620c81e (patch)
treedf3988dd62214da480a3f720c778f2118a4269d3 /app/mailers
parentb05de5a583e35931967dcc70d2f26f568c9cf0db (diff)
Omit blocked admins from repository check e-mails
Blocked admins should not receive notifications about failed repository checks. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63019
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/repository_check_mailer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/repository_check_mailer.rb b/app/mailers/repository_check_mailer.rb
index a24d3476d0e..aa56ba1828b 100644
--- a/app/mailers/repository_check_mailer.rb
+++ b/app/mailers/repository_check_mailer.rb
@@ -15,7 +15,7 @@ class RepositoryCheckMailer < BaseMailer
end
mail(
- to: User.admins.pluck(:email),
+ to: User.admins.active.pluck(:email),
subject: "GitLab Admin | #{@message}"
)
end