Ghana's Supreme Court has unanimously decided to dismiss two legal challenges to new anti-LGBT legislation that has been criticised by rights groups.
Earlier this year, lawmakers passed a bill imposing three years in prison for people identifying as LGBT and five years for forming or funding LGBT groups.
Fear and uncertainty has gripped Ghana's LGBT community, already facing limited rights. The bill, considered one of Africa's most draconian anti-LGBT laws, has been condemned by the UN.
Amanda Odoi and Richard Dela-Sky filed separate challenges to the bill to declare it illegal and prevent President Nana Akufo-Addo from signing it into law.
President Akufo-Addo delayed signing it following the challenges to the bill. He said he would wait for the Supreme Court's decision.
But after several months of consideration, the judges said the case couldn't be reviewed until the president had signed it into law.
"Until there's presidential assent, there is no act," said Justice Avril Lovelace-Johnson as quoted by Reuters news agency.
The two cases were "unanimously dismissed", Justice Lovelace-Johnson added.
Ms Odoi and Mr Sky's lawyers told Reuters they weren't happy with the ruling and would explore their options after reviewing the full judgment.
The proposed new legislation - The Proper Human Sexual Rights and Ghanaian Family Values bill - was backed by both of Ghana's main political parties.
But Mr Sky said there were not enough MPs in the chamber when the vote took place.
With his two-term presidency ending on 7 January, President Akufo-Addo has not yet revealed what he will do.
Opposition leader John Mahama, who won this month's presidential election, has expressed support for the bill.
If it becomes law, it is likely to face further challenges in court.
Gay sex is already punishable by up to three years in prison in the conservative West African country.
But this new legislation has already had implications for the LGBT community, said Abena Takyiwaa Manuh, senior fellow of Accra-based Centre for Democratic Governance.
"Even without the passage of the bill, people have been attacking members of a certain community," he was quoted as saying by Reuters.
"This kind of formalism actually put at risk the life and health of certain members of the community, and of course some of us who are human rights defenders."
The bill was first introduced to parliament in 2021 but faced many delays.
When it was passed, the controversial bill sparked criticism from the finance ministry, which warned that Ghana could lose about $3.8bn (£3bn) in World Bank funding over the next five to six years if it was passed.