mirror of
https://github.com/bitwarden/server.git
synced 2025-07-15 22:57:44 -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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user