Well, my question falls under the same topic so I hope you won't mind me asking here instead of creating similar new topic
What I have is a public gallery with commenting only allowed for logged in users. No albums have passwords, I just want to keep comments limited.
I've read several posts and all the guides I could find regarding hiding albums, and the only way seems to be unpublishing the desired albums. But this does not hide them from logged in users. Even if I create a user with no rights what so ever, unpublished albums are still visible. Likewise if I have a dummy user manage the unpublished albums they are still visible to other users. Only when no user is logged in are they hidden as I'd like.
It took a while to track down where zenphoto checks if an album should be shown or not and it would seem the sortAlbumArray() in class-gallery.php is responsible for it while in the next_album() loop. It seems to remove unpublished albums from the list only if no user is logged in ( $row['show'] || $mine || (is_null($mine) && $album->isMyItem(LIST_RIGHTS)) ) so this matches my observations.
So essentially what I'm asking: is there currently a way to hide albums from logged in users while still keeping them unprotected in other ways?