Ride-share apps Uber and Lyft will no longer bar customers from taking them to court over sex-assault claims, the companies announced Tuesday.

Customers previously waived many of their rights when signing up for the services.

In addition to only being able to pursue claims against the firms through internal arbitration, riders weren’t allowed to even talk publicly about assault incidents if they got money from the firms.

The rules were designed to protect the firm’s liability; individual drivers could still be arrested and convicted of crimes.

But “we have learned it’s important to give sexual-assault and harassment survivors control of how they pursue their claims,” Uber’s chief legal officer, Tony West, said in a statement.

“So moving forward, survivors will be free to choose to resolve their individual claims in the venue they prefer: in mediation . . . in arbitration . . . or in open court.

They can “tell their story wherever and however they see fit,” West said.

Shortly after Uber’s announcement, Lyft announced the same changes.