Yeah both the 13th and 14th amendments let states create arbitrary conditions for voting for state and federal issues. The only carveout being to prove that its a racially motivated condition and most of the states have matter of fact prisoner disenfranchisement that existed long before any correlation with race, so there isnt currently a challenge except for individual legislatures to make new laws.