ZenphotoCMS Forum
Image visibility - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Image visibility (/thread-8578.html)



Image visibility - vns - 2011-05-04

If I uncheck "visible" for a single image, Zenphoto just adds a CSS class "not_visible" to the image.

Why the image data is outputted if the image isn't visible?

I would like to hide (from the html too) a image, if user doesn't got album editing rights and the image isn't checked to visible.

It's a security issue too.




Image visibility - acrylian - 2011-05-04

Because if you are loggedin as an admin with the proper rights items set to not published are visible. This way you can mark them on your theme.

Recommended read:
http://www.zenphoto.org/news/troubleshooting-zenphoto#13
http://www.zenphoto.org/news/troubleshooting-zenphoto#46




Image visibility - vns - 2011-05-04

Thanks for your reply.

I haven't logged in as a administrator. I have created a user with minimum privileges to browse a gallery (the gallery is hidden for non-users) and logged in with that.

We don't want to hide whole albums: inside of a normal album some images have restrictions so we would like to hide these images from users with a minimum rights.




Image visibility - acrylian - 2011-05-04

There is no direct right on image level for various technical reasons. Please read the links I provided plus:
http://www.zenphoto.org/news/an-overview-of-zenphoto-users