1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 16:12:49 -05:00

Determine self hosted from global settings (#1744)

This commit is contained in:
Matt Gibson
2021-12-07 10:52:36 -06:00
committed by GitHub
parent 9177ad1ca8
commit d7e92dae5b
2 changed files with 10 additions and 4 deletions

View File

@ -1278,10 +1278,10 @@ namespace Bit.Core.Services
}
private static bool CheckOrganizationCanSponsor(Organization organization)
private bool CheckOrganizationCanSponsor(Organization organization)
{
return StaticStore.GetPlan(organization.PlanType).Product == ProductType.Enterprise
&& !organization.SelfHost;
&& !_globalSettings.SelfHosted;
}
public async Task<OrganizationUser> AcceptUserAsync(Guid organizationUserId, User user, string token,