From 2de03ba04961c47e8dc05da870eed3a77b96bffe Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Thu, 7 Jul 2016 11:54:34 -0700 Subject: [PATCH] auth edge case for profile --- app/app/pods/profile/route.js | 4 ++-- app/app/routes/application.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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