mirror of
https://github.com/bitwarden/server
synced 2025-12-13 06:43:45 +00: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