Skip to content

Commit

Permalink
fixed 403 redirect if not signed in (meanjs#1496)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperreality authored and Daron Jones committed Sep 20, 2016
1 parent e5c7a3f commit e043975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/client/config/core.client.route-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit e043975

Please sign in to comment.