The superintendent of a detention centre may, subject to the order of the Court under which the detainee is detained, permit a detainee to be absent from a detention centre:
(a) for a period not exceeding 12 hours for the purposes of receiving educational training or participating in arrangements of a social, recreational or vocational nature; or
(b) for any period for a purpose approved by the superintendent if in the custody and under the supervision of:
(i) a member of the staff of the detention centre; or
(ii) a police officer; or
(iii) the sheriff as defined in section 4 of the Sheriff Act 1962 ; or
(iv) a person authorised by the CEO.