From 04f8e002425b076a56289f69a4137001da5905d1 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Thu, 11 Mar 2021 12:55:59 +0000 Subject: [PATCH] [Library | Trunk]: Error interceptor let get methods of registry pass git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60624 d315682c-612b-4755-9ff5-7f18f6832af3 --- dashboard/users/role-users/role-users.component.ts | 2 +- error-interceptor.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/users/role-users/role-users.component.ts b/dashboard/users/role-users/role-users.component.ts index a6420e6c..c4a0de43 100644 --- a/dashboard/users/role-users/role-users.component.ts +++ b/dashboard/users/role-users/role-users.component.ts @@ -117,7 +117,7 @@ export class RoleUsersComponent implements OnInit, OnDestroy, OnChanges { this.pending = users; this.loadPending = false; }, error => { - this.active = []; + this.pending = []; this.loadPending = false; })); } diff --git a/error-interceptor.service.ts b/error-interceptor.service.ts index c8b93296..3d96bd07 100644 --- a/error-interceptor.service.ts +++ b/error-interceptor.service.ts @@ -18,7 +18,7 @@ export class ErrorInterceptorService implements HttpInterceptor { intercept(req: HttpRequest, next: HttpHandler): Observable> { return next.handle(req).pipe(catchError(err => { - if ((err.status === 0 && properties.registryUrl && this.isService(req, properties.registryUrl)) || + if ((err.status === 0 && properties.registryUrl && this.isService(req, properties.registryUrl) && req.method !== 'GET') || (err.status === 401 && !this.isService(req, ErrorInterceptorService.UNAUTHORIZED_WHITELIST))) { this.logOut(); } else if(err.status === 403 && !this.isService(req, ErrorInterceptorService.UNAUTHORIZED_WHITELIST)) {