3:17 PM PT -- Despite Thursday's ruling, Bauer's MLB administrative leave has been extended through Aug. 27.
12:36 PM PT -- Trevor's attorneys Shawn Holley and Jon Fetterolf tell TMZ Sports ... "We are grateful to the Los Angeles Superior Court for denying the request for a permanent restraining order and dissolving the temporary restraining order against Mr. Bauer today."
"While we have expected this outcome since the petition was filed in June, we appreciate the Court reviewing all relevant information and testimony to make this informed decision."
A judge just ruled the woman accusing Trevor Bauer of sexual assault will NOT be allowed to have a permanent restraining order against the MLB star.
The decision came down Thursday morning in an L.A. courtroom after three-plus days of proceedings ... with a judge ordering the temporary restraining order against Bauer must be dissolved.
In announcing her order ... the judge said Bauer "did not exceed limits" that his accuser had set before their two sexual encounters in April and May.
"If she set limits and he exceeded them, this case would be clear," the judge said in the courtroom, according to L.A. Times reporter Steve Henson. "But he did not exceed limits she set."
The judge added, according to Henson, that the injuries the woman suffered during the sexual encounters were "not the result of anything she told [Bauer] she objected to."
The judge also said, per Henson, that Bauer did not pose any potential future threat to the woman.
The decision is obviously a huge win for Bauer -- who's been away from the Dodgers on administrative leave since the temporary restraining order was granted back in June -- though it remains unclear what it means for his potential future in the MLB.
Trevor Bauer walks out of court with a victory today. However, it is just potentially 1 battle in what could be a legal war to clear his name.
A civil case could still result. A criminal charge could still result. A MLB suspension could still result.