A Kenyan court ruled Thursday that using anal examinations to determine someone's sexual orientation is legal, despite protests against the "degrading treatment," USA Today reports.
“I find no violation of human dignity, right to privacy and right to freedom of the petitioners," Mombasa High Court Judge Matthew Emukule ruled, according to the site.
The decision comes in response to the case of two men who were arrested at a bar near Ukunda in February after being suspected of having sex.
The two men were forced to undergo anal examinations as well as HIV and hepatitis B tests, which they described as being "subjected to torture and degrading treatment."
The judge tossed out their petition, but the men still face charges. Engaging in same-sex relations is a criminal offense in Kenya and carries a sentence of up to 14 years in prison.
Read more at USA Today.