Following an army-led coup on 19 September 2006, the 1997 constitution was abrogated. The junta ruled the country by martial law and executive decree for weeks, until it published an interim constitution on 1 October 2006. The interim constitution allowed the junta to appoint a prime minister, a legislature, and a committee to draft a permanent constitution. Local and municipal elections were held as usual. In 2007 the new constitution was eventually issued, said to be a "junta supported constitution" by many critics. The 2007 constitution was again abolished in another military takeover on 22 May 2014. According to the 2017 constitution, Thailand's entire political system is under the control of the army, through the appointed Senate but also via an array of military-dominated oversight bodies