A push to let visitors with concealed-carry permits bring guns onto Louisiana school campuses was rejected by senators Tuesday.

A Senate judicial committee gutted House Bill 602, removing the portion that would have allowed armed civilians at schools.

Instead, lawmakers rewrote the bill to allow people with concealed carry permits to have their firearms up to the edge of a school campus.

Sen. Neil Riser, a Republican who handled the bill, pledged not to undo the changes. With that promise, senators voted 3-2 to send the measure to the full Senate. If approved there, the House would have to decide whether to accept the changes.

About two dozen gun bills were filed this year, most of them after 17 people were killed in an attack on a Florida high school in February. Democrats have been proposing gun restrictions, while Republicans advocate for loosening firearm rules. Most of the measures have been unsuccessful.