WICHITA, Kan. — A federal appeals court says law enforcement officials in Kansas cannot stop and search motorists for having nothing more than out-of-state license plates from states that have legalized marijuana.

The 10th Circuit Court of Appeals on Tuesday says the officer’s reasoning would justify the search of citizens from more than half of the states in the country.

The court reinstated the lawsuit filed by a Colorado motorist against two Kansas Highway Patrol officers who stopped and searched his vehicle while he was driving alone at night on I-70 in Kansas.

Related Articles July 20, 2016 Only 4% of Colorado tourists came for the legal weed in 2015, survey says

August 14, 2016 Study: Poorer marijuana users smoking the most

August 17, 2016 Court bars feds from prosecuting medical marijuana cases It found the officers violated Peter Vasquez’s Fourth Amendment rights in searching his car.

Twenty-five states permit marijuana use for medicinal purposes, with Colorado, Alaska, Oregon, Washington, and Washington, D.C. permitting some recreational use under state law.