Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 1c8cdea

Browse files
committed
Redirect to login if unauthorized or forbidden
1 parent 901171f commit 1c8cdea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/js/app/core/interceptors/AuthInterceptor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
* @returns {*|Promise}
6060
*/
6161
responseError: function responseErrorCallback(response) {
62-
if (response.status === 401) {
62+
if (response.status === 401 || response.status === 403) {
6363
$localStorage.$reset();
6464

65-
// $injector.get('$state').go('auth.login');
65+
$injector.get('$state').go('auth.login');
6666
}
6767

6868
return $q.reject(response);

0 commit comments

Comments
 (0)