I guess it depends on whether there was a dress code when she was hired? I can kinda see what they're saying if technically she was violating the code set by the business, though the boss went about it the wrong way fighting it (ie should have just said the dress policy not that he was getting mad boners).
XI Wiki


