Skip to content

Respect alt email when sending group access notifications

What does this MR do?

Currently we're not respecting alternate (group-level) notification emails when we sent mailer invite/access granted/rejected notifications. This MR fixes that

Bonus: Changed the #recipient helper to accept a User object if we have one, so we don't do an extra DB lookup for no reason

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Rel #63568 (closed)

Edited by Mario de la Ossa

Merge request reports