A city of Columbus’ law banning a gun accessory that allows semi-automatic weapons to be fired rapidly has been overturned by a judge as unconstitutional.

A semi-automatic rifle at right that has been fitted with a bump stock device. (Ted S. Warren/AP)

COLUMBUS, Ohio — A city of Columbus’ law banning a gun accessory that allows semi-automatic weapons to be fired rapidly has been overturned by a judge as unconstitutional.

The Columbus Dispatch reports Franklin County Judge David Cain ruled Friday that municipalities can’t regulate gun accessories like bump stocks under state law.

Bump stocks drew wide attention last year when a gunman in Las Vegas killed 58 people attending a music festival. Authorities said some of the semi-automatic rifles Stephen Paddock used that night where outfitted with bump stocks that essentially turned them into automatic weapons.

Two Ohio pro-gun groups sued Columbus after it enacted the ban in May.

Cain upheld a law that allows Columbus to charge some people convicted of violent felonies with misdemeanors for being in possession of a firearm.