President Hassan Rouhani was elected democratically.
Not too long ago, in Iran, there were scores of mass protests against their own government, who were then oppressed, subdued, and killed for protesting.
Lots and lots of censorship including in the media, internet, and free speech.
Sounds like a dictatorship to me.