Any body having control of a school may, on account of the prevalence of any communicable disease, or to prevent the spread of communicable diseases, prohibit the attendance of any teacher or pupil of any school under their control and specify the time during which the teacher or scholar shall remain away from school.
N.J.S. § 26:4-6