SACRAMENTO, Calif. (AP) – Legislation advancing in California would require short-term rental housing websites including Airbnb to warn users they may be violating their leases.

The Assembly on Thursday unanimously approved SB761 by Democratic Sen. Isadore Hall of Compton with 73 votes.

The bill is sponsored by the California Apartment Association, which says vacation rentals put other tenants in danger by bringing unscreened people into complexes.

SB761 requires Airbnb-type websites to have notices saying room listings may put tenants at risk of legal action or eviction. Some San Francisco tenants have received eviction notices for violating prohibitions on short-term renting.

Airbnb’s terms and conditions already tell hosts to check their leases, but they don’t mention evictions.

The bill returns to the Senate for a vote on amendments added for Airbnb to drop its opposition.

Copyright 2015 The Associated Press.