Allow signout in forceUpgrade state

This commit is contained in:
Aileen Nowak 2021-10-28 10:50:00 +02:00
parent fbaf172c05
commit 69ea3ae14f

View File

@ -12,7 +12,7 @@ Route.reopen({
transition.abort();
this.upgradeStatus.requireUpgrade();
return false;
} else if (this.config.get('hostSettings.forceUpgrade')) {
} else if (this.config.get('hostSettings.forceUpgrade') && transition.to?.name !== 'signout') {
transition.abort();
// Catch and redirect every route in a force upgrade state
this.billing.openBillingWindow(this.router.currentURL, '/pro');