openfun / joanie

👛 A headless ERP for education to manage course enrollment/subscription, payment and certificates delivery.
MIT License
22 stars 2 forks source link

Contract - Archive download - Organization filtering #714

Closed jbpenrath closed 6 months ago

jbpenrath commented 6 months ago

Bug Report

Problematic behavior

If a user has access to several organizations and those ones are implied in the same CourseProductRelation, when the user asks to download an archive of all contracts (from the frontend, it is on an organization view detail), it gets all contracts for all organization it has access.

Expected behavior/code

Frontend should be able to use filter by organization_id on the endpoint to generate contracts archive.