No prisoner shall perform work pursuant to G.S. 162-58 unless the prisoner has been approved for the work by the person having custody of the prisoner. The decision to approve a prisoner for work shall be based on the prisoner’s history of violence, if any, past criminal convictions, and current sentence. For purposes of this section, the person having custody of the prisoner is the sheriff, except that when the prisoner is confined in a district confinement facility the person having custody of the prisoner is the jail administrator. The person having custody of the prisoner may use his discretion to revoke his approval at any time and to return the prisoner to the local confinement facility or satellite jail/work release unit. Neither the person having custody of the prisoner nor any jailer may be held liable for the actions of any prisoner, including those actions committed during and after the escape of a prisoner, while the prisoner is outside their supervision pursuant to this section. (1991 (Reg. Sess., 1992), c. 841, s. 1.)