(b)No such authority or officer or person shall be liable in respect of any such act in any civil or criminal proceedings, if the act was done in good faith in the course of the execution of the duties or the discharge of the functions assigned to such authority or officer or person by or under this Act.