The district courts shall have original jurisdiction of any civil action to recover possession of any office, except that of elector of President or Vice President, United States Senator, Representative in or delegate to Congress, or member of a state legislature, authorized by law to be commenced, where in it appears that the sole question touching the title to office arises out of denial of the right to vote, to any citizen offering to vote, on account of race, color or previous condition of servitude.
The jurisdiction under this section shall extend only so far as to determine the rights of the parties to office by reason of the denial of the right, guaranteed by the Constitution of the United States and secured by any law, to enforce the right of citizens of the United States to vote in all the States.