The condominium will have rules for pets, type of pets, how much they can weigh, etc. Your friend’s lease should had a clause that says he agrees to follow the rules of the condominium.
If the condominium allows pets like your friend has, then the landlord probably can’t force your friend out, but not sure. There could be a clause in the lease agreement that says no pets, but don’t know if it is enforceable if the condominium allows pets like your friend has.
It is a different issue if the dog has been a nuisance.
I was somewhat involved in a case where people thought they were entitled to have pets, in a condo that did not allow them. Long story short, the people made a stand and lawyered up , but lost the case, lost their condo, and left with some substantial bills.