From dc136365e727928780fd29b6423b87cf90e5ba7b Mon Sep 17 00:00:00 2001 From: Jimmy Vo Date: Fri, 7 Mar 2025 11:02:41 -0500 Subject: [PATCH] [PM-15621] Undo --- .../DeleteManagedOrganizationUserAccountCommand.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/DeleteManagedOrganizationUserAccountCommand.cs b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/DeleteManagedOrganizationUserAccountCommand.cs index 8f69d6ff03..1778a483d9 100644 --- a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/DeleteManagedOrganizationUserAccountCommand.cs +++ b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/DeleteManagedOrganizationUserAccountCommand.cs @@ -122,18 +122,6 @@ public class DeleteManagedOrganizationUserAccountCommand : IDeleteManagedOrganiz private async Task ValidateAsync(Guid organizationId, OrganizationUser orgUser, User user, Guid? deletingUserId, IDictionary managementStatus) { - var result1 = EnsureUserStatusIsNotInvited(orgUser); - if (result1 is not Success) - { - return result1; - } - - var result2 = PreventSelfDeletion(orgUser, deletingUserId); - if (result2 is not Success) - { - return result2; - } - var validators = new[] { () => EnsureUserStatusIsNotInvited(orgUser),