1
0
mirror of https://github.com/bitwarden/server synced 2025-12-20 10:13:39 +00:00

Add product type to organization details

This commit is contained in:
Matt Gibson
2021-11-09 21:12:27 -05:00
committed by Justin Baur
parent 76c5ddb611
commit a2467ea6ea
2 changed files with 4 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ namespace Bit.Core.Models.Api
FamilySponsorshipAvailable = FamilySponsorshipFriendlyName == null &&
Utilities.StaticStore.GetSponsoredPlan(PlanSponsorshipType.FamiliesForEnterprise)
.UsersCanSponsor(organization);
PlanProductType = Utilities.StaticStore.GetPlan(organization.PlanType).Product;
}
public string Id { get; set; }
@@ -74,5 +75,6 @@ namespace Bit.Core.Models.Api
public string ProviderName { get; set; }
public string FamilySponsorshipFriendlyName { get; set; }
public bool FamilySponsorshipAvailable { get; set; }
public ProductType PlanProductType { get; set; }
}
}