diff --git a/app/app/pods/profile/route.js b/app/app/pods/profile/route.js index 5a21d514..80ae0511 100644 --- a/app/app/pods/profile/route.js +++ b/app/app/pods/profile/route.js @@ -7,7 +7,7 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, { session: Ember.inject.service(), beforeModel: function () { - if (!this.get("session").authenticated) { + if (!this.get("session.authenticated")) { this.transitionTo('auth.login'); } }, @@ -24,4 +24,4 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, { controller.set('model', model); controller.set("folder", this.get('folderService.currentFolder')); } -}); +}); \ No newline at end of file diff --git a/app/app/routes/application.js b/app/app/routes/application.js index ea955a81..e8eeb139 100644 --- a/app/app/routes/application.js +++ b/app/app/routes/application.js @@ -45,7 +45,7 @@ export default Ember.Route.extend(ApplicationRouteMixin, { return true; }, - error(error, transition) { // jshint ignore: line + error(error /*, transition*/ ) { if (error) { if (netUtil.isAjaxAccessError(error)) { localStorage.clear(); @@ -56,5 +56,5 @@ export default Ember.Route.extend(ApplicationRouteMixin, { // Return true to bubble this event to any parent route. return true; } - }, + } }); \ No newline at end of file