mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
Added links to issues
This commit is contained in:
@@ -137,6 +137,8 @@ export class AuthService {
|
|||||||
|
|
||||||
if (status.authenticated) {
|
if (status.authenticated) {
|
||||||
// TODO this should be cleaned up, AuthStatus could be parsed by the RemoteDataService as a whole...
|
// TODO this should be cleaned up, AuthStatus could be parsed by the RemoteDataService as a whole...
|
||||||
|
// Review when https://jira.duraspace.org/browse/DS-4006 is fixed
|
||||||
|
// See https://github.com/DSpace/dspace-angular/issues/292
|
||||||
const person$ = this.rdbService.buildSingle<NormalizedEPerson, EPerson>(status.eperson.toString());
|
const person$ = this.rdbService.buildSingle<NormalizedEPerson, EPerson>(status.eperson.toString());
|
||||||
return person$.pipe(map((eperson) => eperson.payload));
|
return person$.pipe(map((eperson) => eperson.payload));
|
||||||
} else {
|
} else {
|
||||||
@@ -348,11 +350,11 @@ export class AuthService {
|
|||||||
this.router.navigated = false;
|
this.router.navigated = false;
|
||||||
const url = decodeURIComponent(redirectUrl);
|
const url = decodeURIComponent(redirectUrl);
|
||||||
this.router.navigateByUrl(url);
|
this.router.navigateByUrl(url);
|
||||||
/* TODO Reenable hard redirect when REST API can handle x-forwarded-for */
|
/* TODO Reenable hard redirect when REST API can handle x-forwarded-for, see https://github.com/DSpace/DSpace/pull/2207 */
|
||||||
// this._window.nativeWindow.location.href = url;
|
// this._window.nativeWindow.location.href = url;
|
||||||
} else {
|
} else {
|
||||||
this.router.navigate(['/']);
|
this.router.navigate(['/']);
|
||||||
/* TODO Reenable hard redirect when REST API can handle x-forwarded-for */
|
/* TODO Reenable hard redirect when REST API can handle x-forwarded-for, see https://github.com/DSpace/DSpace/pull/2207 */
|
||||||
// this._window.nativeWindow.location.href = '/';
|
// this._window.nativeWindow.location.href = '/';
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@@ -150,7 +150,8 @@ export abstract class BaseResponseParsingService {
|
|||||||
return obj[keys[0]];
|
return obj[keys[0]];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO remove when REST response for epersons is fixed */
|
// TODO Remove when https://jira.duraspace.org/browse/DS-4006 is fixed
|
||||||
|
// See https://github.com/DSpace/dspace-angular/issues/292
|
||||||
private fixBadEPersonRestResponse(obj: any): any {
|
private fixBadEPersonRestResponse(obj: any): any {
|
||||||
if (obj.type === ResourceType.EPerson) {
|
if (obj.type === ResourceType.EPerson) {
|
||||||
const groups = obj.groups;
|
const groups = obj.groups;
|
||||||
|
Reference in New Issue
Block a user