In Germany landlords are allowed to forbid pets, but they can't do anything about "small animals" such as cats or rodents unless they cause trouble (e.g. via excessive smell or noise).
Interesting, but at the end of the article they clarify that this is only about small dogs (which makes sense as the original term for the kind of pets that can't be forbidden was "Kleintiere", i.e. small animals).