Sometimes you get to look at porn at work.

Gay S&M porn pictures starring a psychiatrist from San Francisco’s foster care program were allegedly downloaded and passed around by one of the city’s child welfare supervisors. And it seems the people above this supervisor didn’t feel the need to move so quick to stop him or her.

San Francisco’s Department of Human Services wants to fire a child welfare supervisor accused of downloading and passing around gay S&M porn pix — hot shots that starred a psychiatrist from the city’s foster care program…

…Sources inside the department say the case started several months back when an employee in the child welfare division showed pictures to her supervisor of the psychiatrist from the XXX adult Web site Leathermen.com.

It wasn’t long before downloaded photos of the doctor were making the rounds of the department, and then up the chain of command, our sources say…

The child welfare supervisor is now facing dismissal for having created a hostile work environment. The psychiatrist who appeared in the pictures is not facing any disciplinary action (well, not from the city of San Francisco anyway).