Of course, military intervention for purposes beyond defending one’s country remains possible, but requires a UN Security Council resolution. The latter alone, provided no permanent member of the Security Council disagrees, can decide whether a war is legitimized by a “just cause” (nowadays generally a gross breach of human rights).