mirror of
https://github.com/bitwarden/server.git
synced 2025-04-17 02:58:12 -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:
parent
9e95d875dc
commit
3f9db4e83f
@ -140,7 +140,7 @@ public class DeleteManagedOrganizationUserAccountCommand : IDeleteManagedOrganiz
|
||||
}
|
||||
private static void PreventSelfDeletion(OrganizationUser orgUser, Guid? deletingUserId)
|
||||
{
|
||||
if (!(orgUser.UserId.HasValue && deletingUserId.HasValue))
|
||||
if (!orgUser.UserId.HasValue || !deletingUserId.HasValue)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user