Fix premium account detection
This commit is contained in:
parent
7895d93704
commit
6ee98cac5b
@ -18,8 +18,6 @@ define(['/customize/application_config.js'], function (AppConfig) {
|
|||||||
deprecatedKey: 'deprecated',
|
deprecatedKey: 'deprecated',
|
||||||
MAX_TEAMS_SLOTS: AppConfig.maxTeamsSlots || 3,
|
MAX_TEAMS_SLOTS: AppConfig.maxTeamsSlots || 3,
|
||||||
MAX_TEAMS_OWNED: AppConfig.maxOwnedTeams || 1,
|
MAX_TEAMS_OWNED: AppConfig.maxOwnedTeams || 1,
|
||||||
// Sub
|
|
||||||
plan: 'CryptPad_plan',
|
|
||||||
// Apps
|
// Apps
|
||||||
criticalApps: ['profile', 'settings', 'debug', 'admin', 'support', 'notifications']
|
criticalApps: ['profile', 'settings', 'debug', 'admin', 'support', 'notifications']
|
||||||
};
|
};
|
||||||
|
|||||||
@ -575,7 +575,8 @@ define([
|
|||||||
support: Util.find(store.proxy, ['mailboxes', 'support', 'channel']),
|
support: Util.find(store.proxy, ['mailboxes', 'support', 'channel']),
|
||||||
pendingFriends: store.proxy.friends_pending || {},
|
pendingFriends: store.proxy.friends_pending || {},
|
||||||
supportPrivateKey: Util.find(store.proxy, ['mailboxes', 'supportadmin', 'keys', 'curvePrivate']),
|
supportPrivateKey: Util.find(store.proxy, ['mailboxes', 'supportadmin', 'keys', 'curvePrivate']),
|
||||||
teams: teams
|
teams: teams,
|
||||||
|
plan: account.plan
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
cb(JSON.parse(JSON.stringify(metadata)));
|
cb(JSON.parse(JSON.stringify(metadata)));
|
||||||
|
|||||||
@ -366,7 +366,6 @@ define([
|
|||||||
donateURL: Cryptpad.donateURL,
|
donateURL: Cryptpad.donateURL,
|
||||||
upgradeURL: Cryptpad.upgradeURL
|
upgradeURL: Cryptpad.upgradeURL
|
||||||
},
|
},
|
||||||
plan: localStorage[Utils.Constants.plan],
|
|
||||||
isNewFile: isNewFile,
|
isNewFile: isNewFile,
|
||||||
isDeleted: isNewFile && window.location.hash.length > 0,
|
isDeleted: isNewFile && window.location.hash.length > 0,
|
||||||
forceCreationScreen: forceCreationScreen,
|
forceCreationScreen: forceCreationScreen,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user