No thumbnail URL returned in pwg.categories.getList when user is not admin #1291

Open
opened 2026-10-05 00:38:57 +02:00 by adam · 0 comments
Owner

Hi !

I'm using the tn_url key in the JSON object returned by pwg.categories.getList, in order to display the categories thumbnail.

It works fine with an admin user, but I noticed that this key is not in the JSON when the request comes from a non-admin user. By the way, in the Piwigo app the albums thumbnails are not shown when connecting a non admin user

I don't see why this key should be reserved for admins ?

Thanks for your help

Hi ! I'm using the tn_url key in the JSON object returned by pwg.categories.getList, in order to display the categories thumbnail. It works fine with an admin user, but I noticed that this key is not in the JSON when the request comes from a non-admin user. By the way, in the Piwigo app the albums thumbnails are not shown when connecting a non admin user I don't see why this key should be reserved for admins ? Thanks for your help <!-- github-sync-id:1000816148 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1291