diff --git a/src/Core/Services/Implementations/OrganizationService.cs b/src/Core/Services/Implementations/OrganizationService.cs index ae4ab7b329..1080b94212 100644 --- a/src/Core/Services/Implementations/OrganizationService.cs +++ b/src/Core/Services/Implementations/OrganizationService.cs @@ -2244,6 +2244,11 @@ namespace Bit.Core.Services { try { + if (organizationUser.Status == OrganizationUserStatusType.Deactivated) + { + throw new BadRequestException("Already deactivated."); + } + if (disablingUserId.HasValue && organizationUser.UserId == disablingUserId) { throw new BadRequestException("You cannot deactivate yourself.");