Piwigo / Piwigo-Android

Piwigo Native Android App
GNU General Public License v3.0
140 stars 43 forks source link

Photos not displayed as non-admin user #169

Open ramack opened 5 years ago

ramack commented 5 years ago

Describe the bug and how to reproduce As reported by FrancoisG in the forum :

I just noticed that Piwigo-Android has been released with a production version 1.0.0, this is great ! I must say that you did a great job: it works and looks fine. I was able to see the albums, to create a new one and to upload new photos :-)

However, there is one glitch I was not able to solve: I use the Community extension, with specific users that are allowed to create albums and upload photos (this works fine). But when logged with this specific user, the thumbnails of the albums are empty (see screenshot 'albums with user'). When logged with admin or guest, the albums are displayed correctly (see screenshot 'albums with guest'). Please, let me know if I should post this kind of issue in another place.

Thank you François

Expected behavior Photos shall be shown also as "community"-users.

What did you do already

Screenshots guest user

Smartphone (please complete the following information):

Additional context

francois-ger commented 5 years ago

Additional information (from FrancoisG): My albums are organized as follow: Year album (e.g. 2019) |--album1 (e.g. Chaux de Culand) |-photo1 |-photo2 ... |--album2 (e.g. Calanques) |-photo9

With community extension, User1 belongs to Group1 and Group1 is allowed to create sub-albums in year album '2019'. When connected with admin or guest, the albums are displayed correctly and immediately. When connected with User1, the album thumbnails are empty (at album year level, and at album1, album2 level). However, I can successfully display the photos within the albums. I waited many minutes to make sure the download was not too slow.

Valou447 commented 5 years ago

This is something we expected, as we do not support the Community extension yet..

@ramack we need to handle the permission system when loading as some photos may be restricted for some groups