Fatal error: Call to a member function addView() on a non-object in /Users/brett/Devel/elgg/master/mod/tidypics/pages/photos/image/view.php on line 18
Larger problem with access controls. If you set the access to public on the album it gives a WSOD when logged out if the images' access levels don't match.
Makes sense because of storing the images as metadata on the album - another good reason for adding ElggCollection
Makes sense but sucks. Best solution for now seems to be forcing the images to the same access level as the album.
I think the logic in the get next image could check and get the next image if the user doesn't have permission - just need to prevent infinite loops
This would make the image counts odd. Could skip from 1 of 7 to 7 of 7. Not a problem?
And by "odd" I mean "incorrect."
In all previous versions, images did not have individual access settings but inherited from the album. I thought adding that would be useful because in future there may be the possibility of putting an image in more than one album. Flickr supports access per image and sets the number of photos in a set based on access. Should be possible to do that with elgg_get_entities() and count.
Refs #18. Doing an access check on TidypicsAlbum->getImageList() to o…
…nly return images the current user can access.
This is a simple fix, but requires an extra DB call for the first getImageList() call.
Fixes #18 adds forwarding when no access