If disclosure of personal data is refused by an agency under § 4-194, any person aggrieved thereby may, within thirty days of such refusal, petition the superior court for the judicial district in which he resides for an order requiring the agency to disclose the personal data. Such a proceeding shall be privileged with respect to assignment for trial. The court, after hearing and an in camera review of the personal data in question, shall issue the order requested unless it determines that such disclosure would be detrimental to the person or is otherwise prohibited by law.