mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
Redirect unauthorized users to signin from debug
Closes #4357 - Adds a call to `this._super()` in DebugRoute#beforeModel to hit the ember simpleauth mixin's beforemodel hook
This commit is contained in:
parent
f7d9769bff
commit
a2d37ce265
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,9 @@ import loadingIndicator from 'ghost/mixins/loading-indicator';
|
|||
var DebugRoute = AuthenticatedRoute.extend(styleBody, loadingIndicator, {
|
||||
classNames: ['settings'],
|
||||
|
||||
beforeModel: function () {
|
||||
beforeModel: function (transition) {
|
||||
this._super(transition);
|
||||
|
||||
var self = this;
|
||||
this.store.find('user', 'me').then(function (user) {
|
||||
if (user.get('isAuthor') || user.get('isEditor')) {
|
||||
|
|
Loading…
Reference in a new issue