openfun / joanie

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

🐛(backend) zip archive of contract by organization #725

Closed jonathanreveille closed 5 months ago

jonathanreveille commented 5 months ago

This PR will solve this issue

When 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, he gets all contracts from all the organizations he has access to. Before the fix, only one parameter (CPR or Org) could be used for this endpoint. Now, the endpoint accepts both parameters CourseProductRelation UUID and Organization UUID. Finally, only the contracts that are attached to a specific organization are now archived.

Purpose

Allow the user (who has organization access) to get all archived contracts from a specific organization.

Proposal

jbpenrath commented 5 months ago

In the commit footer, you can add :

Fix #714