The purpose of this section is to protect and provide for the privacy and safety of all students enrolled in public schools and to maintain order and dignity in restrooms, locker rooms, changing rooms, showers, and other facilities where students may be in various states of undress in the presence of other students.