(CNN) The suspected gunman in the Kansas City bar shooting had previous firearm charges that could have sent him to prison, but legislators changing gun laws that went into effect in 2017 kept him free.

Jahron Swift, 29, was found dead in a parking lot Sunday night after he pulled out a gun and opened fire while waiting in line at a bar Sunday night.

Police said the bar's armed security guard engaged with Swift, shooting him dead. A 25-year-old woman was also found at the scene, she was identified as Raeven Parks. Fifteen other people were injured.

Court records show that Swift had two weapons charges in 2016 and 2017.

The 2016 charge was for unlawful use of a weapon and marijuana possession, according to court records. Swift was charged in 2017 with unlawful concealed carry, which could have revoked his probation on the previous charge and increased his chances of going to prison, Mike Mansur, the Jackson County prosecutor spokesman, told CNN.

Read More