Image via Getty.

On Thursday, India’s Supreme Court ruled that sexual orientation is protected under the country’s right to privacy law.

The Huffington Post reports that the court did not go so far as to overturn any of India’s laws that criminalize same-sex relationships, but the decision paves the way for such laws to be challenged as discriminatory in court. The nine judges who made the ruling were overturning a previous decision from 2013, in which that Supreme Court panel named LGBT protections “so-called rights” and argued that anti-LGBT law Section 377 affected only a “minuscule minority” of the country and could stay on the books.

In explaining their reasoning, the judges condemned this language and defended the concept of sexual orientation falling under the constitutional protection of privacy.

“Sexual orientation is an essential attribute of privacy,” says the decision. “Discrimination against an individual on the basis of sexual orientation is deeply offensive to the dignity and self-worth of the individual. Equality demands that the sexual orientation of each individual in society must be protected on an even platform.”