Exclude acconts app from the new pad menu

This commit is contained in:
yflory 2020-10-20 15:44:19 +02:00
parent 7b989784b8
commit a2523cd3d4
2 changed files with 3 additions and 1 deletions

View file

@ -1239,8 +1239,8 @@ define([
} else if (!plan) {
// user is logged in and subscriptions are allowed
// and they don't have one. show upgrades
makeDonateButton();
makeUpgradeButton();
makeDonateButton();
} else {
// they have a plan. show nothing
}
@ -1934,6 +1934,7 @@ define([
if (p === 'contacts') { return; }
if (p === 'todo') { return; }
if (p === 'file') { return; }
if (p === 'accounts') { return; }
if (!common.isLoggedIn() && AppConfig.registeredOnlyTypes &&
AppConfig.registeredOnlyTypes.indexOf(p) !== -1) { return; }
return true;

View file

@ -2520,6 +2520,7 @@ define([
if (type === 'contacts') { return; }
if (type === 'todo') { return; }
if (type === 'file') { return; }
if (type === 'accounts') { return; }
if (!APP.loggedIn && AppConfig.registeredOnlyTypes &&
AppConfig.registeredOnlyTypes.indexOf(type) !== -1) {
return;