Allow unlimited cloud websites for subscribed accounts
This commit is contained in:
1 parent
264466191e
commit
d2eafd68f7
2 files changed
+12
No files matched your search
@@ -3,6 +3,7 @@ export interface SubscriptionAccount {
|
||||
isBusiness?: boolean | null;
|
||||
isNoBilling?: boolean | null;
|
||||
hasSubscription?: boolean | null;
|
||||
unlimitedWebsites?: boolean | null;
|
||||
}
|
||||
|
||||
export const CLOUD_FREE_WEBSITE_LIMIT = 3;
|
||||
@@ -13,6 +14,10 @@ export function getCloudWebsiteLimit(account?: SubscriptionAccount | null): numb
|
||||
return CLOUD_FREE_WEBSITE_LIMIT;
|
||||
}
|
||||
|
||||
if (account.unlimitedWebsites) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (account.isNoBilling || account.isBusiness) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user