Then it's not really a "dress code", is it? That particular statement could be problematic, IMHO...
That will cause them a ton of headaches for sure because it strips them of the moral high ground, and it is illogical.