Which incarcerated people can vote?

To vote in California, you have to be a U.S. citizen, at least 18 and not found mentally incompetent by a court. There are other restrictions for those in the criminal justice system.