mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Fix typo: 'ProviderDisllowedOrganizationTypes' -> 'ProviderDisallowedOrganizationTypes'
This commit is contained in:
@ -17,7 +17,7 @@ namespace Bit.Commercial.Core.Services;
|
|||||||
|
|
||||||
public class ProviderService : IProviderService
|
public class ProviderService : IProviderService
|
||||||
{
|
{
|
||||||
public static PlanType[] ProviderDisllowedOrganizationTypes = new[] { PlanType.Free, PlanType.FamiliesAnnually, PlanType.FamiliesAnnually2019 };
|
public static PlanType[] ProviderDisallowedOrganizationTypes = new[] { PlanType.Free, PlanType.FamiliesAnnually, PlanType.FamiliesAnnually2019 };
|
||||||
|
|
||||||
private readonly IDataProtector _dataProtector;
|
private readonly IDataProtector _dataProtector;
|
||||||
private readonly IMailService _mailService;
|
private readonly IMailService _mailService;
|
||||||
@ -493,7 +493,7 @@ public class ProviderService : IProviderService
|
|||||||
|
|
||||||
private void ThrowOnInvalidPlanType(PlanType requestedType)
|
private void ThrowOnInvalidPlanType(PlanType requestedType)
|
||||||
{
|
{
|
||||||
if (ProviderDisllowedOrganizationTypes.Contains(requestedType))
|
if (ProviderDisallowedOrganizationTypes.Contains(requestedType))
|
||||||
{
|
{
|
||||||
throw new BadRequestException($"Providers cannot manage organizations with the requested plan type ({requestedType}). Only Teams and Enterprise accounts are allowed.");
|
throw new BadRequestException($"Providers cannot manage organizations with the requested plan type ({requestedType}). Only Teams and Enterprise accounts are allowed.");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user