mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 09:02:48 -05:00
<= 1
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user