[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
This commit is contained in:
k.triantafyllou 2021-03-11 12:55:59 +00:00
parent 07b659525e
commit 04f8e00242
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}));
}

View File

@ -18,7 +18,7 @@ export class ErrorInterceptorService implements HttpInterceptor {
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
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)) {