summaryrefslogtreecommitdiff
path: root/app/services/notification_service.rb
diff options
context:
space:
mode:
authorMario de la Ossa <mariodelaossa@gmail.com>2019-07-23 21:36:07 -0600
committerMario de la Ossa <mariodelaossa@gmail.com>2019-07-25 21:09:25 -0600
commit10a42a8a76c281fad735f89cb3c37caf2acd6e04 (patch)
tree2329ccd5fcdf6920fd282d21d8706ea846a37110 /app/services/notification_service.rb
parenta1d1b3aa89850844f824205eb75c56af3b5228f3 (diff)
downloadgitlab-ce-10a42a8a76c281fad735f89cb3c37caf2acd6e04.tar.gz
Respect alt email when sending group access notifications63568-access-email-notifications-custom-email
When sending access granted/rejected emails we should also respect custom emails set for groups/sub-groups
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r--app/services/notification_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb
index a55771ed538..21fab22e0d4 100644
--- a/app/services/notification_service.rb
+++ b/app/services/notification_service.rb
@@ -595,7 +595,7 @@ class NotificationService
end
def deliver_access_request_email(recipient, member)
- mailer.member_access_requested_email(member.real_source_type, member.id, recipient.user.notification_email).deliver_later
+ mailer.member_access_requested_email(member.real_source_type, member.id, recipient.user.id).deliver_later
end
def fallback_to_group_owners_maintainers?(recipients, member)