Privacy check for images?

SteveX
SteveX
@ultrajam
8 years ago
2,584 posts
I have a custom item module which does not display items itself, they are listed using jrCore_list within a skin template modified in the db. The skin template is then shown in the profile. In the list call I need to use privacy_check=false in order to list the items so that they are visible to non-profile owners.

However, each item has an image, and although the item shows the image is shown as the default ? image to someone logged in who is not the profile owner. Owners see the correct image.

Is there a means of setting privacy_check to false on the image as well?


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 07/16/16 07:37:44PM
SteveX
SteveX
@ultrajam
8 years ago
2,584 posts
I fixed this as a problem by moving the items to a public profile.

The default images were being displayed by the check in jrImage_display_image at line 928 of jrImage/include.php

It would be useful to have the option to avoid that privacy check in order to display images on items which avoid privacy checking. Otherwise, items listed by setting privacy_check=false will always display the default image for non-admins.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags