Young Cook Islands politician, Te-Hani Brown, looks set to contest her third election in a year for Atiu's Tengatangi-Areora-Ngatiarua electorate.
The Chief Justice Sir Hugh Williams this week dismissed a call by opposition candidate Nandi Glassie who had challenged the result of a March by-election.
Mr Glassie had initially filed a petition over that result but Te-Hani Brown resigned before it could be held.
In the 2018 general election Te-Hani Brown was a member of the opposition Democratic Party but she swapped allegiance and joined the government triggering the by-election.
Mr Glassie had claimed she won the by-election as a result of bribery - the judge has rule that wasn't the case.
Now the opposition Democratic Party has three weeks to consider whether to appeal the decision or focus on the new by-election.
The Deputy Prime Minister Mark Brown told the Cook Islands News the government was delighted with the court decision and he is encouraging the opposition not to appeal but rather go back to the people.