No officer or person holding any appointment, the duties of which are discharged in connection with the prison system, must say anything in relation to the management of any prison in the presence of any convict except to direct him in his duty or to admonish him for delinquency.