1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-22 05:25:10 -05:00

Update src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/DeleteManagedOrganizationUserAccountCommand.cs

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
This commit is contained in:
Jimmy Vo 2025-02-10 09:14:06 -05:00 committed by GitHub
parent 9e95d875dc
commit 3f9db4e83f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -140,7 +140,7 @@ public class DeleteManagedOrganizationUserAccountCommand : IDeleteManagedOrganiz
} }
private static void PreventSelfDeletion(OrganizationUser orgUser, Guid? deletingUserId) private static void PreventSelfDeletion(OrganizationUser orgUser, Guid? deletingUserId)
{ {
if (!(orgUser.UserId.HasValue && deletingUserId.HasValue)) if (!orgUser.UserId.HasValue || !deletingUserId.HasValue)
{ {
return; return;
} }