mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
Merge pull request #4358 from novaugust/unauthed-debug-redirect
Redirect unauthorized users to signin from debug
This commit is contained in:
commit
bffd372b3f
@ -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 New Issue
Block a user