mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
MNT-23233: get users according to providers configuration (#7924)
This commit is contained in:
parent
32a3f9c9ef
commit
4410557d8d
@ -80,14 +80,18 @@ export class AuthenticationService extends Authentication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private loadUserDetails() {
|
private loadUserDetails() {
|
||||||
const ecmUser$ = from(this.peopleApi.getPerson('-me-'));
|
|
||||||
const bpmUser$ = this.getBpmLoggedUser();
|
|
||||||
|
|
||||||
if (this.isALLProvider()) {
|
if (this.isALLProvider()) {
|
||||||
|
const ecmUser$ = from(this.peopleApi.getPerson('-me-'));
|
||||||
|
const bpmUser$ = this.getBpmLoggedUser();
|
||||||
|
|
||||||
forkJoin([ecmUser$, bpmUser$]).subscribe(() => this.onLogin.next());
|
forkJoin([ecmUser$, bpmUser$]).subscribe(() => this.onLogin.next());
|
||||||
} else if (this.isECMProvider()) {
|
} else if (this.isECMProvider()) {
|
||||||
|
const ecmUser$ = from(this.peopleApi.getPerson('-me-'));
|
||||||
|
|
||||||
ecmUser$.subscribe(() => this.onLogin.next());
|
ecmUser$.subscribe(() => this.onLogin.next());
|
||||||
} else {
|
} else {
|
||||||
|
const bpmUser$ = this.getBpmLoggedUser();
|
||||||
|
|
||||||
bpmUser$.subscribe(() => this.onLogin.next());
|
bpmUser$.subscribe(() => this.onLogin.next());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user