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:
@ -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,
|
||||
|
Reference in New Issue
Block a user