From e0439750826e6ea18c721ba26d42734991322d78 Mon Sep 17 00:00:00 2001 From: hyperreality Date: Tue, 13 Sep 2016 15:39:50 -0400 Subject: [PATCH] fixed 403 redirect if not signed in (#1496) --- modules/core/client/config/core.client.route-filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/client/config/core.client.route-filter.js b/modules/core/client/config/core.client.route-filter.js index a68b70231f..4d7c605492 100644 --- a/modules/core/client/config/core.client.route-filter.js +++ b/modules/core/client/config/core.client.route-filter.js @@ -25,7 +25,7 @@ if (!allowed) { event.preventDefault(); - if (Authentication.user !== undefined && typeof Authentication.user === 'object') { + if (Authentication.user !== null && typeof Authentication.user === 'object') { $state.transitionTo('forbidden'); } else { $state.go('authentication.signin').then(function () {