Built in Product Catalog APP does not display images on user that came from the portal
This is the code I found showing the image . It is not displaying corretly when I tried it from the portal. I tried giving all the permission to the user but without success. if I am admin or users from Zoho creator they can see it normally.

- <%
- getProdDetails = Add_Product[ID == recID.toLong()];
- getPrimaryImg = Add_Product_Images[Product_Name == recID.toLong() && Primary_Pic].ID;
- getImgs = Add_Product_Images[Product_Name == recID.toLong()].ID.getAll();
- imgList = {};
- imgIDList = {};
- for each eachImages in getImgs
- {
- getImg = Add_Product_Images[ID == eachImages.toLong()];
- imgstr = getImg.Product_Image.replaceAll("/sharedBy/appLinkName/viewLinkName/fieldName",zoho.appuri + "Shared_Report_Image/Product_Image");
- imgstr = imgstr.replaceAll("<img src = ","<img style='height:100%;' src=");
- imgList.add(imgstr);
- imgIDList.add(getImg.ID);
-
- }
-
-
- %>