Section 218(4) in Bharatiya Nagarik Suraksha Sanhita, 2023
(4)Notwithstanding anything contained in sub-section (3), no Court shall take cognizance of any offence, alleged to have been committed by any member of the Forces charged with the maintenance of public order in a State while acting or purporting to act in the discharge of his official duty during the period while a Proclamation issued under clause (1) of article 356 of the Constitution was in force therein, except with the previous sanction of the Central Government.