The teacher can open the door.
It is up to the student to step through.