QQ: Classroom Security Part 1

A school district has been advised that they should implement magnets to cover the strikes or other devices to prevent the classroom doors from latching.  Is this permitted by code?