While on probation, Riley is not allowed to possess weapons, firearms or ammunition, real or simulated, according to the Multnomah County District Attorney’s Office.

PORTLAND, Ore. — A woman whose gun went off inside a busy Portland elementary school cafeteria has been sentenced to three years of probation

Antoinette Riley was picking up her kids at an after-school program at Jason Lee Elementary School on Oct. 4, 2018, when a gun went off inside her backpack, according to court documents. There were at least 50 kids inside the cafeteria when the gun discharged. Riley immediately left with her kids.

No one was hurt in the shooting. There was a bullet strike in the table and bench where Riley was sitting.

Riley pleaded guilty on Tuesday to two counts of reckless endangering another person.

While on probation, Riley is not allowed to possess weapons, firearms or ammunition, real or simulated, according to the Multnomah County District Attorney’s Office. Riley signed an affidavit saying her gun was destroyed, the district attorney’s office said. She is also not allowed to be on Portland Public Schools property, according to the district attorney’s office.