mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-17 21:41:49 +03:00
Fix missing redirect on settings/code-injection when not authenticated
related issue #5412 - code-injection route was overriding `beforeModel` without calling `super` which meant the redirect handling added in `AuthenticatedRoute` was being skipped
This commit is contained in:
parent
6fc2b37ab2
commit
ac2ae5a788
@ -6,7 +6,8 @@ export default AuthenticatedRoute.extend(styleBody, CurrentUserSettings, {
|
|||||||
titleToken: 'Settings - Code Injection',
|
titleToken: 'Settings - Code Injection',
|
||||||
classNames: ['settings-view-code'],
|
classNames: ['settings-view-code'],
|
||||||
|
|
||||||
beforeModel: function () {
|
beforeModel: function (transition) {
|
||||||
|
this._super(transition);
|
||||||
return this.get('session.user')
|
return this.get('session.user')
|
||||||
.then(this.transitionAuthor())
|
.then(this.transitionAuthor())
|
||||||
.then(this.transitionEditor());
|
.then(this.transitionEditor());
|
||||||
|
Loading…
Reference in New Issue
Block a user