Nothing herein contained shall be construed as giving to anyone the right to obtain copies of photographs, information, statements or reports when, in the opinion of the Chief of Police, the same should be restricted and held as confidential in the interest of justice. In any such case where a restriction is imposed by the Chief of Police, said restriction may be lifted by an order of a court of competent jurisdiction or by the written order of the Attorney General, the County or Municipal Prosecutor or the Director of Public Safety.