X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/dee79c4cf4eb34d80b925168e76d1114dfc02c2a..4a1735427d84743f6c2f3576263fdcae397cf9e9:/services/api/app/mailers/admin_notifier.rb diff --git a/services/api/app/mailers/admin_notifier.rb b/services/api/app/mailers/admin_notifier.rb index 45e329030f..2c39a3924e 100644 --- a/services/api/app/mailers/admin_notifier.rb +++ b/services/api/app/mailers/admin_notifier.rb @@ -10,7 +10,7 @@ class AdminNotifier < ActionMailer::Base def new_user(user) @user = user if not Rails.configuration.Users.NewUserNotificationRecipients.empty? then - @recipients = Rails.configuration.Users.NewUserNotificationRecipients + @recipients = Rails.configuration.Users.NewUserNotificationRecipients.keys logger.info "Sending mail to #{@recipients} about new user #{@user.uuid} (#{@user.full_name} <#{@user.email}>)" add_to_subject = '' @@ -27,7 +27,7 @@ class AdminNotifier < ActionMailer::Base def new_inactive_user(user) @user = user if not Rails.configuration.Users.NewInactiveUserNotificationRecipients.empty? then - @recipients = Rails.configuration.Users.NewInactiveUserNotificationRecipients + @recipients = Rails.configuration.Users.NewInactiveUserNotificationRecipients.keys logger.info "Sending mail to #{@recipients} about new user #{@user.uuid} (#{@user.full_name} <#{@user.email}>)" mail(to: @recipients, subject: "#{Rails.configuration.Users.EmailSubjectPrefix}New inactive user notification"