Honestly, you should really discuss this with a lawyer if you want a real answer. If you can get the attention of a tenant-landlord lawyer, they will probably give you a straightforward answer over email and charge you nothing for it. But these sorts of things can vary a lot from place to place, and a local lawyer would know best.
Personally, I would be absolutely shocked if this were strictly legal for multiple reasons… But again, laws vary by region.
Honestly, you should really discuss this with a lawyer if you want a real answer. If you can get the attention of a tenant-landlord lawyer, they will probably give you a straightforward answer over email and charge you nothing for it. But these sorts of things can vary a lot from place to place, and a local lawyer would know best.
Personally, I would be absolutely shocked if this were strictly legal for multiple reasons… But again, laws vary by region.