diff --git a/front/app/src/app/layout/auth/auth.interceptor.ts b/front/app/src/app/layout/auth/auth.interceptor.ts index ca358b12..aa881200 100644 --- a/front/app/src/app/layout/auth/auth.interceptor.ts +++ b/front/app/src/app/layout/auth/auth.interceptor.ts @@ -26,6 +26,10 @@ export class AuthInterceptor implements HttpInterceptor { catchError((error: HttpErrorResponse) => { if (error.status && error.status == 401) { this.auth.requestAuth(); + return throwError(() => $localize`Authentication required`); + } + if (error.status && error.status == 403) { + return throwError(() => $localize`Permissions too low`); } return throwError(() => error); })