mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Allow signout in forceUpgrade
state
This commit is contained in:
parent
fbaf172c05
commit
69ea3ae14f
@ -12,7 +12,7 @@ Route.reopen({
|
|||||||
transition.abort();
|
transition.abort();
|
||||||
this.upgradeStatus.requireUpgrade();
|
this.upgradeStatus.requireUpgrade();
|
||||||
return false;
|
return false;
|
||||||
} else if (this.config.get('hostSettings.forceUpgrade')) {
|
} else if (this.config.get('hostSettings.forceUpgrade') && transition.to?.name !== 'signout') {
|
||||||
transition.abort();
|
transition.abort();
|
||||||
// Catch and redirect every route in a force upgrade state
|
// Catch and redirect every route in a force upgrade state
|
||||||
this.billing.openBillingWindow(this.router.currentURL, '/pro');
|
this.billing.openBillingWindow(this.router.currentURL, '/pro');
|
||||||
|
Loading…
Reference in New Issue
Block a user