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

Add sponsorship available boolean to orgDetails

This commit is contained in:
Matt Gibson
2021-11-08 19:06:32 -05:00
parent 6357514064
commit b61227d87e
6 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,6 @@
using Bit.Core.Enums;
using Bit.Core.Models.Data;
using Bit.Core.Models.StaticStore;
using Bit.Core.Models.Table;
using System.Collections.Generic;
using System.Linq;
@ -484,7 +484,9 @@ namespace Bit.Core.Utilities
PlanSponsorshipType = PlanSponsorshipType.FamiliesForEnterprise,
SponsoredProductType = ProductType.Families,
SponsoringProductType = ProductType.Enterprise,
StripePlanId = "2021-enterprise-sponsored-families-org-monthly"
StripePlanId = "2021-enterprise-sponsored-families-org-monthly",
UsersCanSponsor = (OrganizationUserOrganizationDetails org) =>
GetPlan(org.PlanType).Product == ProductType.Enterprise,
}
};
public static Plan GetPlan(PlanType planType) =>