TOPEKA, Kan. (AP) – A judge will hear arguments on whether to block the two-tiered voting system in Kansas just days before the primary election.

Shawnee County District Judge Larry Hendricks has set a July 29 hearing in Topeka on the American Civil Liberties Union’s request for a temporary restraining order. The primary is Aug. 2.

The ACLU is challenging Secretary of State Kris Kobach’s plan to throw out thousands of votes cast in state and local races by people who registered at motor vehicle offices or used a federal form without providing documentary proof of U.S. citizenship.

A state board approved that process the day before the start of advanced voting for the primary.

Another judge ruled earlier this year that the right to vote is not tied to the method of registration.