Party Discipline and Elective Dictatorship