Fix premium account detection
parent
7895d93704
commit
6ee98cac5b
|
@ -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']
|
||||
};
|
||||
|
|
|
@ -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)));
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue