diff --git a/www/common/common-constants.js b/www/common/common-constants.js index a083ceb90..553665574 100644 --- a/www/common/common-constants.js +++ b/www/common/common-constants.js @@ -18,8 +18,6 @@ define(['/customize/application_config.js'], function (AppConfig) { deprecatedKey: 'deprecated', MAX_TEAMS_SLOTS: AppConfig.maxTeamsSlots || 3, MAX_TEAMS_OWNED: AppConfig.maxOwnedTeams || 1, - // Sub - plan: 'CryptPad_plan', // Apps criticalApps: ['profile', 'settings', 'debug', 'admin', 'support', 'notifications'] }; diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index 5900601e8..0cf362e5d 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -575,7 +575,8 @@ define([ support: Util.find(store.proxy, ['mailboxes', 'support', 'channel']), pendingFriends: store.proxy.friends_pending || {}, supportPrivateKey: Util.find(store.proxy, ['mailboxes', 'supportadmin', 'keys', 'curvePrivate']), - teams: teams + teams: teams, + plan: account.plan } }; cb(JSON.parse(JSON.stringify(metadata))); diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index efa904d6e..e439d04c1 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -366,7 +366,6 @@ define([ donateURL: Cryptpad.donateURL, upgradeURL: Cryptpad.upgradeURL }, - plan: localStorage[Utils.Constants.plan], isNewFile: isNewFile, isDeleted: isNewFile && window.location.hash.length > 0, forceCreationScreen: forceCreationScreen,