Australian employers can legally enforce dress codes and grooming standards, but the rules become unlawful when these things are targeted.