Reminds me of Iran
>In theory, the Supreme Leader is elected by the Assembly of Experts. However, all candidates for membership at the Assembly of Experts (including the President and the Majlis (parliament)) must have their candidacy approved by the Guardian Council, whose members in turn, are half appointed unilaterally by the Supreme Leader and half subject to confirmation by the Majlis after being appointed by the head of the Iranian judiciary, who is himself appointed by the Supreme Leader. https://en.m.wikipedia.org/wiki/Supreme_Leader_of_Iran