Section 243(243) in The Railway Protection Force Rules, 1987
243.1Deputation of Magistrate:-When the Detachment Commander is of opinion that the use of force oropposition to the Mobilisation detachment is probable or when a detachment isdeputed for a protective duty during a strike or insurgency or any other uprising, hemay move that a Magistrate be deputed with it.