Which kept African Americans from nominating candidates for office?

Which kept African Americans from nominating candidates for office?