A former Brooklyn judge who wasn’t nominated for re-election in 2016 and who sued party leaders when negative assessments about her time on the bench were leaked to the press has been dealt a defeat in her legal battle as a federal judge has found she is not entitled to a “fair shot” to get on the ballot.

The ruling by U.S. District Judge LaShann DeArcy Hall of the Eastern District of New York to dismiss former state Supreme Court Justice Laura Jacobson’s suit against Brooklyn Democratic Party leaders and the party’s judicial screening committee comes just days after the party came together to pick three Civil Court candidates to appear on the November ballot through a legal yet opaque process that has repeatedly drawn criticism from voters, good government groups and editorial boards.