Is this Judge right or totally off for doing this?

A Quebec judge tells a woman appearing in her Montreal courtroom she would not hear her case until she removed her hijab.