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
......@@ -297,10 +297,18 @@ public class DashboardUtil
for(int i = 0, size = quicklinks.length(); i < size; i++) {
JSONObject quicklinkObj=quicklinks.optJSONObject(i);
try
{
String displayLink = "N";
if( "0".equalsIgnoreCase( userInfo.getUserLevel() ) )
{
displayLink = "Y";
}
else
{
// If obj_name_rights is found in quicklink its a Dynamic QuickLink
String objName = quicklinkObj.getString("obj_name_rights");
String displayLink = getObjUserRights(objName, profileId);
displayLink = getObjUserRights(objName, profileId);
}
quicklinkObj.put("displayLink", displayLink);
}
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