66. Temporary absence shall not be granted, except for medical purposes, to a young person within the meaning of the Young Offenders Act (Revised Statutes of Canada, 1985, chapter Y-1) who has been committed to custody under that Act or to a person serving a sentence for contempt of court in a civil or penal matter where the person is required to return before the court pursuant to a condition of his or her sentence.