A federal appeals court has upheld a ruling that a disgraced Detroit judge cannot be sued.

Judge Wade McCree first made headlines when he sexted a shirtless selfie to a female bailiff back in 2012. Then, McCree had a sexual relationship with Geniene La'Shay Mott while overseeing her child support case.

McCree sexted Mott from the bench and had sex with her in his chambers. During this time, he ordered Robert King, the father of Mott’s child, to pay child support and to wear an electronic tether.

King sued McCree, but a court ruled that he could not be sued because of the immunity doctrine, which says that in order for judges to remain impartial, they must be immune from lawsuits.

Watch Trace Gallagher’s report above. 

ICYMI: More from 'The Kelly File' on Fox News:

Napolitano on Russia’s Reported 1987 Treaty Violation: Obama Has ‘Known About it for Months’

‘Putin Believes He Is Sort of Superman’: Huckabee on Russia’s Reported Violation of 1987 Missile Treaty