 On 13 July, less than two days before the coup was launched, Erdoğan signed a bill giving Turkish soldiers immunity from prosecution while taking part in domestic operations.The bill requires cases against commanders to be approved by the prime minister, while cases against lower-ranking soldiers may be signed off on by district governors.The immunity bill was seen as part of the "détente" between the government and the armed forces, while the latter have increasingly been taking over military operations in Kurdish-inhabited areas from police and paramilitary units.