Dress Code And Right Of A State To Enforce It
That was not your original question, but yes it is okay for an organization to enforce a dress code. This was also addressed by Ghamidi sahab in the video shared above.