diff --git a/src/app/searchPages/communities/searchCommunities.component.ts b/src/app/searchPages/communities/searchCommunities.component.ts index c8f6ee9..7bf56b9 100644 --- a/src/app/searchPages/communities/searchCommunities.component.ts +++ b/src/app/searchPages/communities/searchCommunities.component.ts @@ -167,7 +167,7 @@ export class SearchCommunitiesComponent { if (result.status == 'hidden') { continue; } else if (result.status == "manager") { - let mail = this.user.email; + let mail = (this.user)?this.user.email:null; if (mail == null) { // no user continue; } else if (Session.isCommunityCurator(this.user) || Session.isPortalAdministrator(this.user)) { diff --git a/src/assets/env-properties.json b/src/assets/env-properties.json index 6b823de..067b5a8 100644 --- a/src/assets/env-properties.json +++ b/src/assets/env-properties.json @@ -37,9 +37,9 @@ "piwikBaseUrl" :"https://analytics.openaire.eu/piwik.php?idsite=", "piwikSiteId" : "80", - "loginUrl" :"http://rudie.di.uoa.gr:8280/dnet-login/openid_connect_login", + "loginUrl" :"http://rudie.di.uoa.gr:8080/dnet-login/openid_connect_login", - "userInfoUrl" : "http://rudie.di.uoa.gr:8280/dnet-openaire-users-1.0.0-SNAPSHOT/api/users/getUserInfo?accessToken=", + "userInfoUrl" : "http://rudie.di.uoa.gr:8080/dnet-openaire-users-1.0.0-SNAPSHOT/api/users/getUserInfo?accessToken=", "logoutUrl" :"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",