From b9e7712b34b18e41f7ca297910a2bd8b6abc449c Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 3 Dec 2018 10:57:34 -0500 Subject: [PATCH] <= 1 --- src/Core/Services/Implementations/UserService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Services/Implementations/UserService.cs b/src/Core/Services/Implementations/UserService.cs index 312d424fc..074874331 100644 --- a/src/Core/Services/Implementations/UserService.cs +++ b/src/Core/Services/Implementations/UserService.cs @@ -186,7 +186,7 @@ namespace Bit.Core.Services if(org != null && (!org.Enabled || string.IsNullOrWhiteSpace(org.GatewaySubscriptionId))) { var orgCount = await _organizationUserRepository.GetCountByOrganizationIdAsync(org.Id); - if(orgCount == 1) + if(orgCount <= 1) { await _organizationRepository.DeleteAsync(org); deletedOrg = true;