Creating resource on the fly when we want to delete model created by WS events
Change-Id: I2e5c0e0af2be6366d86437d140d4517990940cbb
diff --git a/src/interceptors.ts b/src/interceptors.ts
index 9174942..dc0dcc4 100644
--- a/src/interceptors.ts
+++ b/src/interceptors.ts
@@ -12,7 +12,7 @@
export function userStatusInterceptor($state: angular.ui.IStateService) {
const checkLogin = (res) => {
- if (res.status === 403) {
+ if (res.status === 403 || res.status === -1) {
$state.go('login');
}
return res;