Piwigo / Piwigo-SmartAlbums

Create dynamic Piwigo albums by photos' tags, dates or with a photo limit.
http://piwigo.org/ext/extension_view.php?eid=544
GNU General Public License v2.0
8 stars 6 forks source link

Smartalbum shows unauthorized picture as Album-Preview picture when SmartAlbums are excluded from perm mgmt #3

Open jheinitz opened 7 years ago

jheinitz commented 7 years ago

Hello,

I love this plugin. It makes it easy to categorize the pictures. I just activated the feature "Exclude SmartAlbums from permissions management" and recognized two issues:

  1. The Album Preview picture might be a picture where the user has no permission to view it
  2. The number of pictures in the SmartAlbum is equal to the overall pictures in this album if the user would be permissioned to view all of them. But in reality fewer pictures might be available to the users, if album access is restricted.

Is there a way to restrict the shown number of pictures in the album to the number of pictures where the user is permissioned to? And is it possible to limit the allowed preview pictures to the ones where the suer is allowed to see them?

Thanks and kind regards

Jens

mistic100 commented 7 years ago

Unfortunately those are points extremely complicated to address because of the cache Piwigo keeps for each album/user for performances.

I decided long ago that the amount and the complexity of the code needed is not worth it.