(1) An entity is not (subject to subsection (2)) to be required to disclose protected information, or produce a document containing protected information, to:
(a) a court; or
(b) a tribunal, authority or person that has the power to require the answering of questions or the production of documents.
(2) Subsection (1) does not prevent an entity from being required to disclose protected information, or to produce a document containing protected information, if it is necessary to do so for the purposes of giving effect to:
(a) this Act; or
(b) the Inspector - General of Intelligence and Security Act 1986 , or any other Act that confers functions, powers or duties on the Inspector - General of Intelligence and Security; or
(c) a legislative instrument made under an Act mentioned in paragraph (a) or (b).