0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Removed redirect for editors accessing AdminX (#18111)

refs https://github.com/TryGhost/Product/issues/3832

Removed redundant code from `settings-x.js` since we now display the
settings page correctly for editors.
This commit is contained in:
Jono M 2023-09-13 14:04:58 +01:00 committed by GitHub
parent 7462ad2be6
commit cb6a8ff6df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,12 +9,6 @@ export default class SettingsXRoute extends AuthenticatedRoute {
beforeModel() {
super.beforeModel(...arguments);
const user = this.session.user;
if (!user.isAdmin) {
return this.transitionTo('settings.staff.user', user);
}
if (!this.config.adminX?.url) {
return this.router.transitionTo('settings');
}