Project

General

Profile

« Previous | Next » 

Revision 57547

[Library]: Check if is Client on userInfo method.

View differences:

connectAdminLoginGuard.guard.ts
28 28
    let errorCode = LoginErrorCodes.NOT_LOGIN;
29 29
    let email = null;
30 30
    const authorized = this.propertiesService.subscribeEnvironment().pipe(map(res => res), mergeMap(properties => {
31
      return typeof document !== 'undefined' &&  this.userManagementService.getUserInfo(properties.userInfoUrl).pipe(map(user => {
31
      return this.userManagementService.getUserInfo(properties.userInfoUrl).pipe(map(user => {
32 32
        if (user) {
33 33
          email = user.email;
34 34
          if (Session.isPortalAdministrator(user) || Session.isCommunityCurator(user)) {

Also available in: Unified diff