Teacher quits because of a ban