Skip to content

Commit

Permalink
fix: allow navigation to settings after 403 error
Browse files Browse the repository at this point in the history
This commit fixes a small bug does not a user log out after they have
hit the 403 state.

Closes #1862.
  • Loading branch information
jniles committed Jul 17, 2017
1 parent a4c20c4 commit 2ba3466
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ function startupConfig($rootScope, $state, $uibModalStack, SessionService, amMom
next.name.indexOf('403') !== -1
);

// pass through to error state
if (isErrorState) {
var isSettingsState = next.name.indexOf('settings') !== -1;

// pass through to error state or settings state
if (isErrorState || isSettingsState) {
return;
}

Expand Down

0 comments on commit 2ba3466

Please sign in to comment.