1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-19 12:08:11 -05:00
This commit is contained in:
Kyle Spearrin 2018-12-03 10:57:34 -05:00
parent 002b642e50
commit b9e7712b34

View File

@ -186,7 +186,7 @@ namespace Bit.Core.Services
if(org != null && (!org.Enabled || string.IsNullOrWhiteSpace(org.GatewaySubscriptionId))) if(org != null && (!org.Enabled || string.IsNullOrWhiteSpace(org.GatewaySubscriptionId)))
{ {
var orgCount = await _organizationUserRepository.GetCountByOrganizationIdAsync(org.Id); var orgCount = await _organizationUserRepository.GetCountByOrganizationIdAsync(org.Id);
if(orgCount == 1) if(orgCount <= 1)
{ {
await _organizationRepository.DeleteAsync(org); await _organizationRepository.DeleteAsync(org);
deletedOrg = true; deletedOrg = true;