mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
Merge branch 'resolvers-branch-angular6' into patch-support
Conflicts: src/app/core/auth/auth-response-parsing.service.spec.ts src/app/core/auth/auth.service.ts src/app/core/auth/models/auth-status.model.ts src/app/core/auth/server-auth.service.ts src/app/core/data/data.service.spec.ts src/app/core/data/data.service.ts src/app/core/data/dspace-object-data.service.ts src/app/core/data/item-data.service.spec.ts src/app/core/data/item-data.service.ts src/app/core/data/request.models.ts src/app/shared/auth-nav-menu/auth-nav-menu.component.ts src/app/shared/mocks/mock-form-service.ts src/app/shared/mocks/mock-remote-data-build.service.ts src/app/shared/mocks/mock-store.ts
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { first, map, switchMap } from 'rxjs/operators';
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
@@ -36,6 +37,7 @@ export class ServerAuthService extends AuthService {
|
||||
options.headers = headers;
|
||||
return this.authRequestService.getRequest('status', options).pipe(
|
||||
switchMap((status: AuthStatus) => {
|
||||
|
||||
if (status.authenticated) {
|
||||
|
||||
// TODO this should be cleaned up, AuthStatus could be parsed by the RemoteDataService as a whole...
|
||||
|
Reference in New Issue
Block a user