mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Handled missing config for new admin-x settings routing
refs https://github.com/TryGhost/Team/issues/3151 - handles redirection to old settings if the config for admin-x is missing and new settings route is opened
This commit is contained in:
parent
31779c95b5
commit
f9ac201891
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ export default class SettingsXRoute extends AuthenticatedRoute {
|
|||
if (!user.isAdmin) {
|
||||
return this.transitionTo('settings.staff.user', user);
|
||||
}
|
||||
|
||||
if (!this.config.adminX?.url) {
|
||||
return this.router.transitionTo('settings');
|
||||
}
|
||||
}
|
||||
|
||||
activate() {
|
||||
|
|
Loading…
Add table
Reference in a new issue