The warden, superintendent or other person in charge of a workhouse may refuse to permit the prisoner to exercise the privilege to leave the workhouse for any breach of discipline or other violation of workhouse regulations. Similarly, the sheriff may refuse to permit the prisoner to exercise the privilege to leave the jail for any breach of discipline or other violation of jail regulations.
T.C.A. § 41-2-131