A US federal judge has dismissed porn actress Stormy Daniels' lawsuit seeking to annul a hush money agreement she had with Donald Trump.
The agreement prevented her from discussing an alleged 2006 fling with Trump - but Trump had already agreed not to enforce it. Trump has denied having an affair with Daniels.
His former lawyer Michael Cohen has said the $130,000 (£100,000) payment was made to help Trump get elected.
Last month Cohen told Congress that Trump had reimbursed him for the payment "as part of a criminal scheme to violate campaign finance laws". Trump has denied wrongdoing.
The decision in favour of Trump by Los Angeles Federal Judge James Otero follows the failure of Ms Daniels' defamation case against Mr Trump last year - a case over which Judge Otero also presided.
She had sued the US president after he mocked her claim that a stranger had threatened her to keep quiet.
Daniels said the latest ruling amounted to the end of the non-disclosure agreement.
"More than a year ago when I was being threatened with a 20 million lawsuit, I asked a judge to toss out this illegal NDA. Glad I stood my ground and kept fighting," she said on Twitter.
Her lawyer Michael Avenatti also insisted the result was a win for his client.