A landlord has got into hot water for telling prospective tenants that they’re not allowed to work from home.