As a spin off of the condo post. If an apartment, condo, HOA makes a rule that violates state and/or Federal law does it matter if it was in place before you moved in or wanted to live there? Should you just suck it up and follow the rules that violate the laws because they were there before you moved in?
This is not specifically about the other case but rather general rules that may violate the laws. They could be discriminatory rules, violations of use, or a refusal to fix things covered by landlord/tenant laws, or even a requirement that a tenant pay a utility that the law specifically outlines as being the responsibility of the landlord.