Private Commit Emails should not be choosable for Notifications or profile addresses
Summary
Private commit emails (as proposed in gitlab-foss#43521 (closed)) can be chosen for Notifications, which leads to GitLab trying to send Emails to these non-existing addresses.
They can also be chosen for the public profile address in Profile -> Public email, which is not really useful either.
Relevant Documentation
https://docs.gitlab.com/ee/user/profile/index.html#private-commit-email
Steps to reproduce
Go to Profile or Notifications and try to change your mail to these non-existing addresses.
What is the current bug behavior?
The private commit emails are choosable
What is the expected correct behavior?
The private commit emails are not choosable (grayed out in the list or not there at all)
Relevant logs and/or screenshots
Output of checks
GitLab Version
12.6.4-ee (cc6b787e7b0)
Edited by Philip Molares