Commit dcdba321 authored by prumde's avatar prumde

Updated displayLink for User Level 0

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@209143 ce508802-f39f-4f6c-b175-0d175dae99d5
parent adbb9233
...@@ -298,9 +298,17 @@ public class DashboardUtil ...@@ -298,9 +298,17 @@ public class DashboardUtil
JSONObject quicklinkObj=quicklinks.optJSONObject(i); JSONObject quicklinkObj=quicklinks.optJSONObject(i);
try try
{ {
// If obj_name_rights is found in quicklink its a Dynamic QuickLink String displayLink = "N";
String objName = quicklinkObj.getString("obj_name_rights"); if( "0".equalsIgnoreCase( userInfo.getUserLevel() ) )
String displayLink = getObjUserRights(objName, profileId); {
displayLink = "Y";
}
else
{
// If obj_name_rights is found in quicklink its a Dynamic QuickLink
String objName = quicklinkObj.getString("obj_name_rights");
displayLink = getObjUserRights(objName, profileId);
}
quicklinkObj.put("displayLink", displayLink); quicklinkObj.put("displayLink", displayLink);
} }
catch(Exception e) catch(Exception e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment