(1)A person may not be required under section 29 to disclose information that the person could not be compelled to disclose in proceedings before the High Court.
(2)A disclosure of information required or authorised by sections 27 to 29 does not breach—
(a)any obligation of confidence owed by the person making the disclosure, or
(b)any other restriction on the disclosure of information (however imposed).
(3)But sections 27 to 29 do not require or authorise a disclosure of information that—
(a)would contravene the data protection legislation (but in determining whether a disclosure would do so, the duty imposed or power conferred by the section in question is to be taken into account), or
(b)is prohibited by any of Parts 1 to 7 or Chapter 1 of Part 9 of the Investigatory Powers Act 2016.
(4)Sections 27 to 29 do not affect any duty or power to disclose information apart from those sections.
(5)In this section “data protection legislation” has the same meaning as in the Data Protection Act 2018 (see section 3(9) of that Act).