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:
parent
7462ad2be6
commit
cb6a8ff6df
1 changed files with 0 additions and 6 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue