Merge pull request #5596 from kevinansfield/fix-missing-code-injection-auth-redirect

Fix missing redirect on settings/code-injection when not authenticated
This commit is contained in:
Jason Williams 2015-07-22 09:51:28 -05:00
commit f6ca9f0b9d

View File

@ -6,7 +6,8 @@ export default AuthenticatedRoute.extend(styleBody, CurrentUserSettings, {
titleToken: 'Settings - Code Injection',
classNames: ['settings-view-code'],
beforeModel: function () {
beforeModel: function (transition) {
this._super(transition);
return this.get('session.user')
.then(this.transitionAuthor())
.then(this.transitionEditor());