A judge on Wednesday upheld the South Carolina Republican Party’s decision not to hold a 2020 presidential primary, a move taken by several states in erecting hurdles for the long-shot candidates challenging President Donald Trump.

In her order, Circuit Judge Jocelyn Newman wrote the law “does not give Plaintiffs a legal right to a presidential preference primary, and the Court will not substitute its own judgment for that of the General Assembly or the SCGOP.”

Earlier this year, former South Carolina congressman Bob Inglis sued state Republicans, saying the party’s decision to skip a primary deprives him and others “of the ability to vote for the candidate of their choice in South Carolina’s famous (and particularly influential) ‘First in the South’ primary.”