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: California COVID-19 Vaccine Lottery $1.5M Winners Selected - Including 1 From Sacramento

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: Fourth Stimulus Check: Will You Get Another Relief Payment?

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: What You Need To Know About California's Reopening

Copyright 2016 The Associated Press.