A transgender woman in prison in Illinois won a court victory after she said she was treated like a “sex slave” in a men’s facility.

Strawberry Hampton sued the Illinois Department of Corrections several times to get transferred to a women’s facility.

Over the past two years, Hampton has been housed in four different men’s prisons. She says that she was the victim of sexual assault, both by other inmates and by guards.

Court documents show that she said that an officer pulled down her pants once. She was forced to have phone sex with another, and other officers made her have sex with her cellmate while they watched.

She was told to stay or the officers would “make their bodies disappear.”

Related: Trump strips transgender prisoners of protections against rape & abuse

Hampton said that she was threatened with violence by inmates if she said what they did.

U.S. District Court Judge Nancy Rosenstengel issued an order requiring the Illinois Department of Corrections to reevaluate Hampton’s request to transfer to a women’s facility.

“A review of Hampton’s full mental health and disciplinary history in the context of her substantiated… complaints and grievances may lead the [Department’s Transgender Care Review Committee] itself to conclude that Hampton is safest in a woman’s prison,” Rosenstengel wrote. “If not, the Court can revisit the issue after the Constitutional issues have been decided at trial.”

The judge also ruled that Hampton must be allowed to attend a transgender support group at the prison. She is currently not allowed to.

She mandated that the Illinois Department of Corrections develop training for staff on transgender issues.

“This is an important step, not only for Strawberry but, in general, for transgender women imprisoned across the nation,” said Vanessa del Valle, Hampton’s lawyer.

“The Illinois Department of Corrections maintains a strict zero-tolerance policy toward all forms of sexual abuse and sexual harassment,” said a spokesperson for the Department of Corrections.

Hampton is serving a 10-year sentence for burglary.