Provided that the author has created the work upon a work contract, the work is considered as a commission.
In case of commissioned work, the author gives consent to use the work for the purpose arising from the contract. However, if the author is not entitled to use the work himself or give consent for use to the third party, it is necessary to agree on the matter. Otherwise, the author can rightfully do so.
Even if the commissioned work is a computer programme, the work for hire regime pertains to it.