In a nonviolent army, the general and the officers are elected, or are as if elected, when their authority is moral and rests solely on the willing obedience of the rank and file.
If the Court finds that there is not a state interest in discriminating and showing moral disapproval of homosexuality then we can't stop equal marriage rights.