From 40b292ad1ff5a2ba00fcde8f023058cfb52c2d4e Mon Sep 17 00:00:00 2001 From: Sudarshan Kumar Date: Thu, 30 Apr 2020 20:48:38 +0530 Subject: Business Card Integration Business Card Integration Issue-ID: PORTAL-898 Change-Id: Ifa47ed0aec23d08dc17dc5c84736ae138291fc8f Signed-off-by: Sudarshan Kumar --- .../org/onap/portalapp/portal/controller/FunctionalMenuController.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ecomp-portal-BE-common/src/main/java/org') diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/FunctionalMenuController.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/FunctionalMenuController.java index 65abc280..abbd854a 100644 --- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/FunctionalMenuController.java +++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/FunctionalMenuController.java @@ -575,10 +575,12 @@ public class FunctionalMenuController extends EPRestrictedBaseController { String lastNameStr = null; String emailStr = null; String lastLogin = null; + boolean isSystemUser = false; EPUser user = EPUserUtils.getUserSession(request); firstNameStr = user.getFirstName(); lastNameStr = user.getLastName(); orgUserIdStr = user.getOrgUserId(); + isSystemUser = user.isSystemUser(); emailStr = user.getEmail(); if (emailStr == null || emailStr.equals("")) { EPUser userResult = searchService.searchUserByUserId(orgUserIdStr); @@ -622,6 +624,7 @@ public class FunctionalMenuController extends EPRestrictedBaseController { map.put("userId", orgUserIdStr != null ? orgUserIdStr : (orgUserIdSC != null ? orgUserIdSC.getCvalue() : null)); map.put("last_login", lastLogin); + map.put("isSystemUser", String.valueOf(isSystemUser)); JSONObject j = new JSONObject(map); fnMenuStaticResponse = j.toString(); // Be chatty in the log -- cgit 1.2.3-korg