mirror of
https://github.com/bitwarden/server.git
synced 2025-07-16 23:27:30 -05:00
[AC-1650] [AC-1578] (#3320)
* Upgraded old 2019 plans to have the same features as 2020 and beyond * Removed redundant test and moved additional test cases to GetByOrgIdAsync_SmNoneFreePlans_ReturnsNull * Fixed issue where feature flag wasn't returning correct plans * Resolved issue where getting plans would return a value that LINQ previously cached when feature flag was in a different state --------- Co-authored-by: cyprain-okeke <108260115+cyprain-okeke@users.noreply.github.com>
This commit is contained in:
@ -6,7 +6,7 @@ using Bit.Core.Models.StaticStore.Plans;
|
||||
|
||||
namespace Bit.Core.Utilities;
|
||||
|
||||
public class StaticStore
|
||||
public static class StaticStore
|
||||
{
|
||||
static StaticStore()
|
||||
{
|
||||
@ -112,6 +112,11 @@ public class StaticStore
|
||||
new EnterprisePlan(false),
|
||||
new TeamsPlan(true),
|
||||
new TeamsPlan(false),
|
||||
|
||||
new Enterprise2020Plan(true),
|
||||
new Enterprise2020Plan(false),
|
||||
new Teams2020Plan(true),
|
||||
new Teams2020Plan(false),
|
||||
new FamiliesPlan(),
|
||||
new FreePlan(),
|
||||
new CustomPlan(),
|
||||
@ -139,8 +144,7 @@ public class StaticStore
|
||||
}
|
||||
};
|
||||
|
||||
public static Models.StaticStore.Plan GetPlan(PlanType planType) =>
|
||||
Plans.SingleOrDefault(p => p.Type == planType);
|
||||
public static Plan GetPlan(PlanType planType) => Plans.SingleOrDefault(p => p.Type == planType);
|
||||
|
||||
|
||||
public static SponsoredPlan GetSponsoredPlan(PlanSponsorshipType planSponsorshipType) =>
|
||||
|
Reference in New Issue
Block a user