Fixed wsp-10062 Need to add check so that it is not possible to delete an
accepted domain from a tenant or an email address from a mailbox when used in UPN
This commit is contained in:
parent
a146b6ebd5
commit
2d6acfc7fc
1 changed files with 2 additions and 1 deletions
|
@ -2158,7 +2158,8 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
List<string> toDelete = new List<string>();
|
List<string> toDelete = new List<string>();
|
||||||
foreach (string emailAddress in emailAddresses)
|
foreach (string emailAddress in emailAddresses)
|
||||||
{
|
{
|
||||||
if (String.Compare(account.PrimaryEmailAddress, emailAddress, true) != 0)
|
if ((String.Compare(account.PrimaryEmailAddress, emailAddress, true) != 0) &
|
||||||
|
(String.Compare(account.UserPrincipalName, emailAddress, true) != 0))
|
||||||
toDelete.Add(emailAddress);
|
toDelete.Add(emailAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue