Cmd. Riker chooses who has to follow uniform code apparently

https://discuss.tchncs.de/post/37497735

Who says they aren’t to code? Maybe they are allowed to implement accents from their native cultures? I mean we are talking about the “woke” starfleet here.
In Worf’s case, that is actually true. His sash is a culturally significant item for Klingons, displaying his house sigil for example. The same is true for Ro’s earrings though. And since Worf got an allowance, Ro should get it, too (which Picard eventually grants. But Worf never got that remark from Riker).
Deanna however just wears civil garments.
There also was a bunch of selectivisim going on: by allowing the only klingon in Starfleet, a son of a major house, wearing the sash, and then having him posted prominently on board the bridge of their flagship, was a power move.

Also: officers. Not only officers, but bridge crew officers. Captain + 1. There’s more leeway after you’ve fought your way up the ranks.

I bet Harry Kim was always violating the dress code off screen, and that’s why he’s the perpetual ensign.

Ensign is an officer rank.
Low ranking officers. OCS cadets are officers. Technically, a staff sergeant with 15 years of career experience has to salute a pimply teen-ager who’s still in school. There’s a difference; rank and experience means more than whether you have a pip or not.
Suprised nobody’s mentioned it yet but Troi’s uniform isn’t up to code and Jellico made her wear a regulation uniform.
I could see Tori being allowed to wear more casual attire as a way to help put the crew at ease during sessions. But as a bridge officer and member of senior staff, yeah she should be in uniform

This might be right. I mean, Migleemo also doesn’t wear a standard uniform: