Don’t limit advanced features in demo

This commit is contained in:
Hillel Coren 2021-04-06 21:23:19 +03:00
parent 163a38f9f3
commit 6fdae0fe36
1 changed files with 3 additions and 4 deletions

View File

@ -726,13 +726,12 @@ abstract class AppState implements Built<AppState, AppStateBuilder> {
bool get isProduction => cleanApiUrl(authState.url) == kAppProductionUrl;
bool get isWhiteLabeled => isSelfHosted || account.plan == kPlanWhiteLabel;
bool get isWhiteLabeled => account.plan == kPlanWhiteLabel;
bool get isProPlan =>
isSelfHosted || isEnterprisePlan || account.plan == kPlanPro;
bool get isProPlan => isEnterprisePlan || account.plan == kPlanPro;
bool get isEnterprisePlan =>
!kReleaseMode || isSelfHosted || account.plan == kPlanEnterprise;
!kReleaseMode || !isProduction || account.plan == kPlanEnterprise;
//bool get isEnterprisePlan => isSelfHosted || account.plan == kPlanEnterprise;
bool get isUserConfirmed {