SACRAMENTO, Calif. (AP) – Gov. Jerry Brown has agreed to restore the voting rights of convicted felons serving time in county jails.

The bill that Brown announced signing Wednesday also reinstates the voting eligibility of felons on probation or under community supervision beginning next year. It does not affect those in state or federal prisons.

READ MORE: Getting Answers: How Often Can Your N95 Or KN95 Mask Be Safely Reused?

AB2466 stems from California’s criminal justice realignment, which led to some people convicted of low-level felonies serving time in county jails.

READ MORE: Campus Of Hope Proposed In Placer County To Combat Homelessness

Republican lawmakers say felons should not be allowed to cast ballots while serving a sentence, with Sen. Patricia Bates of Laguna Niguel saying it compromises the integrity of elections.

Democratic Assemblywoman Shirley Weber of San Diego says opponents don’t want to allow certain people to vote. She says civic participation can be a critical part of reducing recidivism.

MORE NEWS: Helping Hands OV

Copyright 2016 The Associated Press.