If an owner has awareness of what is going on inside is dangerous, then maybe that owner then becomes liable for negligence. If the owner is prevented by privacy or evasiveness reasons from awareness of what is going on inside that could be dangerous, then I dunno. My WAG would be no but then again I am just a bystander. Sometimes imaginably landlords cannot just bust a door down and say they need to see the inside of a building property. Might there be constraints, and might the constraints then limit liability? Do any tenant privacy laws apply? And the whole thing about subletting is another level. I dunno so I would probably be a bit hesitant to pre-judge.
I am a real estate broker in CA familiar with the rental forms. The original renter retains responsibility. The language informs them as such.
When someone occupies a property in CA it is hard for the owner to get.in. You can inform in writing and give advanced notice. If it is a business or dance club it would be easy to find out what’s going on inside.
The last issue is despite the laws, a jury or judge can always decide on the basis of their own judgment at the time.