Idiom
be wearing your teacher's hatbe wearing (your) [teacher's/lawyer's etc.] hat
to be acting as you do when you are working as a teacher, lawyer etc., which may be different from the way you act in other situations.I was wearing my teacher's hat at the meeting.