Piwigo-Android
Piwigo-Android copied to clipboard
Photos not displayed as non-admin user
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
- Did you check with guest login? yes, here the photos are shown
Screenshots

Smartphone (please complete the following information):
- Android 6.0.1 on Sony Xperia Z3 compact
Additional context
- Piwigo 2.10.1
- Système d'exploitation: Linux
- PHP: 5.6.40 (Montrer les informations) [2019-10-21 11:50:41]
- MySQL: 5.5.5-10.3.11-MariaDB [2019-10-21 11:50:41]
- Bibliothèque graphique: External ImageMagick 6.9.10-27
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.
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