From e2ee78c203eedbc5c91d675e3170c39203cf4ad4 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 3 Dec 2019 09:57:22 +0000 Subject: [PATCH] Add check condition for adding user information on usermenuitems. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@57789 d315682c-612b-4755-9ff5-7f18f6832af3 --- explore/src/app/app.component.ts | 4 +++- explore/src/assets/env-properties.json | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/explore/src/app/app.component.ts b/explore/src/app/app.component.ts index cde98900..36913f60 100644 --- a/explore/src/app/app.component.ts +++ b/explore/src/app/app.component.ts @@ -136,7 +136,9 @@ export class AppComponent { this.userMenuItems.push(new MenuItem("", "Manage all links", "", "/claims", false, [], ["/claims"], {})); } - this.userMenuItems.push(new MenuItem("", "User information", "", "/user-info", false, [], [], {})); + if(this.user) { + this.userMenuItems.push(new MenuItem("", "User information", "", "/user-info", false, [], [], {})); + } } } diff --git a/explore/src/assets/env-properties.json b/explore/src/assets/env-properties.json index e3a1223c..0e26a217 100644 --- a/explore/src/assets/env-properties.json +++ b/explore/src/assets/env-properties.json @@ -33,9 +33,9 @@ "piwikBaseUrl" :"https://analytics.openaire.eu/piwik.php?idsite=", "piwikSiteId" : "6", - "loginUrl" :"http://rudie.di.uoa.gr:8080/dnet-openaire-users-1.0.0-SNAPSHOT/openid_connect_login", + "loginUrl" :"http://dl170.madgik.di.uoa.gr:8180/dnet-login/openid_connect_login", - "userInfoUrl" : "http://rudie.di.uoa.gr:8080/dnet-openaire-users-1.0.0-SNAPSHOT/api/users/getUserInfo?accessToken=", + "userInfoUrl" : "http://scoobydoo.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=",