Just remembered there was a similar instance where they banned becoming nude in changing rooms
https://www.cnn.com/2023/03/31/sport/australia-surf-club-nudity-policy-intl-spt-scli/index.html
Can't change your underwear it seems.
How would they even know if somebody was nude in them?