0
Fork 0
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:
Rishabh 2023-05-16 12:26:47 +05:30
parent 31779c95b5
commit f9ac201891

View file

@ -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() {