HOUSTON, Texas (CBSDFW.COM/AP) — A federal appeals court has stopped a judge from forcing a Texas woman to make her name public in a lawsuit alleging she was sexually assaulted by a co-worker.

Last month, U.S. District Judge Lynn Hughes ordered the woman to reveal her identity. If she refused, Hughes’ order called on her employer to identify her, even though the company had not made such a request.

The appeals court said Wednesday that Hughes failed to analyze factors that should keep someone’s name out of a lawsuit.

Advocates for sexual assault survivors were critical of Hughes’ order, saying it could prevent other sexual assault victims from coming forward.

(© Copyright 2019 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)