Disallow email invitation when email signup is not active
What does this MR do and why?
With this MR, we are disallowing invitation via email for all instances where Email Signup is disabled. The changes also add an alert. The alert contains a link when the current user has Admin role.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Condition | Expectation | Screenshot |
---|---|---|
Email Signup enabled | ||
Group: No alert message | ||
Project: No alert message | ||
Email Signup disabled | ||
-- No Admin | ||
Project: Alert message | ||
Project: Email not found | ||
Project: Error submitting email | ||
-- Admin | ||
Group: Alert message | ||
Project: Alert message | ||
Group: Email not found | ||
Project: Email not found | ||
Group: Error submitting email | ||
Project: Error submitting email |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #356965
Edited by Angelo Gulina