biigle / core

:large_blue_circle: Application core of BIIGLE
https://biigle.de
GNU General Public License v3.0
12 stars 15 forks source link

Volume's project list is empty if not a member of the project #909

Open ymelnikova opened 1 month ago

ymelnikova commented 1 month ago

Hi team,

I noticed that if I am not a member of a project, when I try to access "projects" field of the volume object, it is empty. All other data is there.
Referring to this api call : https://biigle.de/doc/api/index.html#api-Volumes-ShowVolumes image

mzur commented 1 month ago

I assume that you run your own BIIGLE instance and have an admin account that lets you see the volume? Otherwise you would not be allowed to see the volume at all. Usually, a user can only see the volume if they belong to at least one project to which the volume belongs. Only admins can see volumes of projects they are no member of. As an admin, do you want to see all projects of the volume there? I would be open for a pull request that implements this change.