A local ordinary is able to dispense from diocesan laws and, whenever he judges that it contributes to the good of the faithful, from laws issued by a plenary or provincial council or by the conference of bishops.
Source: Code of Canon Law (Vatican.va)