On-duty SF firefighter photographed wearing 'Let's Go Brandon' shirt

SFFD says the firefighter violated the department's uniform policy and that it immediately took action. Should political statements like this be allowed in the workplace?