mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 05:28:15 -05:00
[PM-15621] Undo
This commit is contained in:
parent
c8e816b4b6
commit
dc136365e7
@ -122,18 +122,6 @@ public class DeleteManagedOrganizationUserAccountCommand : IDeleteManagedOrganiz
|
|||||||
|
|
||||||
private async Task<CommandResult> ValidateAsync(Guid organizationId, OrganizationUser orgUser, User user, Guid? deletingUserId, IDictionary<Guid, bool> managementStatus)
|
private async Task<CommandResult> ValidateAsync(Guid organizationId, OrganizationUser orgUser, User user, Guid? deletingUserId, IDictionary<Guid, bool> 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[]
|
var validators = new[]
|
||||||
{
|
{
|
||||||
() => EnsureUserStatusIsNotInvited(orgUser),
|
() => EnsureUserStatusIsNotInvited(orgUser),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user