openfun / joanie

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

Accesses - Constraint between Course and Organization Accesses #706

Open jbpenrath opened 5 months ago

jbpenrath commented 5 months ago

Feature Request

This issue is opened for discussion, it does not aim to be implemented as is.

Is your feature request related to a problem or unsupported use case? Please describe. Currently, there is no relation between Course and Organization accesses. This could lead to weird use case. i.e: We do not want allow a user to list all orders for given course product relation. Indeed a user should be only able to list orders linked to an organization which it has access. BUT currently a user can have course access without organization access, so this kind of user will not be able to list orders that looks weird.

Describe the solution you'd like Does a user should be member of an organization to be member of a course authored/sold by the related organization ?