openfun / joanie

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

✨(backend) new organization owner can sign contract #736

Closed jonathanreveille closed 3 months ago

jonathanreveille commented 3 months ago

New organization owners should be able to sign the contract. Actually, the invitation link received by the signature backend will only return the link if the user has been registered into the signature procedure. Actually, a new organization owner will never be able to sign existing contracts that were initiated before his arrival.

We need to be able to catch every update, deletion or creation of organization access with the role 'owner' to update the list of signatories for an organization for ongoing signature procedures.

Purpose

Allow new organization owners to be able to sign existing contract that were initiated before their arrival. Owners who are deleted should be taken of the signature procedures as well. The goal is to have only users who are eligible to date to sign contracts in order to get a valid contract once signed by both parties.

Proposal