A Kenyan court ruled Thursday that it is legal to use anal examinations to determine one’s sexual orientation, USA Today reported.
The Mombasa High Court determined the examinations are humane, despite protesters’ argument that such practices are degrading and a form of torture.
The decision was made in the case of two men who were arrested on suspicion of having sex in a bar near Ukunda along Kenya’s Indian Ocean coast in February 2015.
The two men were forced to undergo anal examinations to determine their sexual orientation and to take HIV and hepatitis B tests.
Homosexual sex is a criminal offense in Kenya and can bring a prison sentence of up to 14 years.
The men petitioned that they were “subjected to torture and degrading treatment,” The Associated Press reported.