Rwandan activist Diane Rwigara and her mother have been released on bail by a court in the capital, Kigali.
The two women are facing charges of fraud and inciting insurrection in connection with Ms Rwigara’s attempt to run for president in 2017.
The prosecution said, in a tweet that has since been deleted, that while it respects the decision to grant bail it disagrees with it.
Ms Rwigara’s supporters celebrated in court when the decision was made.
Get breaking news on your Mobile as-it-happens. SMS ‘NEWS’ to 22163
Ms Rwigara is a renowned women’s activist in Rwanda and had hoped to challenge President Paul Kagame in the 2017 election.
But her bid was unsuccessful when she was disqualified after investigators alleged Ms Rwigara had committed an electoral offence by collecting forged signatures to endorse her candidacy.
She, and her mother, have denied the charges against them.
Elsewhere, a former commander of militant Islamist group al-Shabab, and one of its founders, Mukhtar Robow, has been barred from running for public office in Somalia.
The ministry of interior has said in a statement that he is unable to put his name forward for the presidency of the country’s South-West state as he still faces sanctions.
The announcement comes a day after Mr Robow declared his intention to run.
He is the highest ranking al-Shabab militant to defect from the group, despite being one of its founders.
Mr Robow had expressed his willingness, if he won, to forge a strong relationship with the federal government, which has been feuding with some state administrations.
In 2000 he trained with al-Qaeda in Afghanistan. He left al-Shabab in 2012 because of what he called ideological differences. He then led his own group of militants who often fought against al-Shabab.
In June last year, following reports that Mr Robow was in talks with the Somali government, the US State Department removed him from its terror list and scrapped a $5m (£3.85m) reward for his capture.