In most of the cases, clients have the right of code. The rest is decided according to the agreement.