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() {
|
||||
if (this.isALLProvider()) {
|
||||
const ecmUser$ = from(this.peopleApi.getPerson('-me-'));
|
||||
const bpmUser$ = this.getBpmLoggedUser();
|
||||
|
||||
if (this.isALLProvider()) {
|
||||
forkJoin([ecmUser$, bpmUser$]).subscribe(() => this.onLogin.next());
|
||||
} else if (this.isECMProvider()) {
|
||||
const ecmUser$ = from(this.peopleApi.getPerson('-me-'));
|
||||
|
||||
ecmUser$.subscribe(() => this.onLogin.next());
|
||||
} else {
|
||||
const bpmUser$ = this.getBpmLoggedUser();
|
||||
|
||||
bpmUser$.subscribe(() => this.onLogin.next());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user