Enable editing existing admin users, creating new admins, and deleting other admin users
This commit is contained in:
committed by
Aditya Chandel
parent
099eecbde5
commit
6a8561080f
@@ -20,7 +20,7 @@ export const AuthInterceptorService: HttpInterceptorFn = (req, next: HttpHandler
|
||||
|
||||
return next(authReq).pipe(
|
||||
catchError((error: HttpErrorResponse) => {
|
||||
if (error.status === 401 || error.status === 403) {
|
||||
if (error.status === 401) {
|
||||
return handle401Error(authService, authReq, next, router, !!internalToken);
|
||||
}
|
||||
return throwError(() => error);
|
||||
|
||||
Reference in New Issue
Block a user