However, there are the following limitations:
If it is a civil case, a lawyer can represent one plaintiff or defendant (unlimited number), but not the plaintiff and defendant;
If it is a criminal case, a lawyer can only be the defender of one defendant.
I hope it helps you.