Religious are bound by the prescripts of cann. 277, 285, 286, 287, and 289, and religious clerics additionally by the prescripts of can. 279, §2; in lay institutes of pontifical right, the proper major superior can grant the permission mentioned in can. 255, §4.
Source: Code of Canon Law (Vatican.va)