Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
fixed 403 redirect if not signed in (#1496)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperreality authored and mleanos committed Sep 13, 2016
1 parent 4f3a501 commit 8b54669
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 8b54669

Please sign in to comment.