给某人做主 means to decide on someone's behalf or to back them up / seek justice for them. 自己做主 means to decide for yourself. Very common in period dramas: 请大人做主 (please deliver justice, my lord).
mistakes
Don't confuse 做主 (make a decision) with 作主 — both exist but 做主 is the standard modern form.