Fix
Change-Id: I041bf15edb82a8530f9f975f9affbb82f90688dc
diff --git a/src/interceptors.ts b/src/interceptors.ts
index c5b5e7e..3ac672d 100644
--- a/src/interceptors.ts
+++ b/src/interceptors.ts
@@ -12,8 +12,8 @@
export function userStatusInterceptor($state: angular.ui.IStateService) {
const checkLogin = (res) => {
- // NOTE why are returning 403 in place of 401??
- if (res.status === 401 || res.status === -1) {
+ // NOTE why are we returning 403 in place of 401??
+ if (res.status === 403 || res.status === -1) {
$state.go('login');
}
return res;