Is it law or SOP that dual citizens can't become President/PM?

Most people didn’t realise she was lying (or more likely misinformed). I get asked all the time here if I had to give up my US citizenship, almost nobody understands that both countries allow dual.