SSHOC / sshoc-marketplace-backend

Code for the backend
Apache License 2.0
2 stars 0 forks source link

related items missing from non-admin request #154

Closed dpancic closed 1 year ago

dpancic commented 2 years ago

In GitLab by @stefanprobst on Feb 3, 2022, 09:31

the following approved item returns 1 related item:

curl https://sshoc-marketplace-api.acdh-dev.oeaw.ac.at/api/publications/SrI6hh | jq '.relatedItems'

however, when querying the same item as Administrator, 2 related items are returned. afaict all of the involved items have status "approved", so this seems unrelated to item status (?).

maybe related: https://gitlab.gwdg.de/sshoc/sshoc-marketplace-backend/-/issues/153

dpancic commented 2 years ago

In GitLab by @vronk on Feb 3, 2022, 13:48

@tparkola can you comment on this?

dpancic commented 2 years ago

In GitLab by @tparkola on Feb 3, 2022, 14:00

So, the contributor has the access to all APPROVED versions and to SUGGESTED, INGESTED, DISAPPROVED if he is InformationContributor to them. Only Moderator and Administrator has the access to all related items.

dpancic commented 2 years ago

In GitLab by @stefanprobst on Feb 3, 2022, 16:10

pretty sure i ended up in this state for an item created from scratch by a contributor, but cannot currently reproduce the issue, so closing this for now.