The database operator must not disclose restricted information from the database except—
The Secretary of State may by regulations make provision authorising the disclosure from the database of restricted information where the disclosure is necessary—
The regulations may—
A disclosure authorised by the regulations does not breach—
Nothing in this section or the regulations authorises the making of a disclosure that would contravene the data protection legislation (but in determining whether a disclosure would do so, take into account the powers conferred by this section and the regulations).
A person commits an offence if the person knowingly or recklessly discloses restricted information in contravention of—
A person guilty of an offence under subsection (6) is liable on summary conviction to a fine.
In this section—
"data protection legislation" has the same meaning as in the Data Protection Act 2018 (see section 3 of that Act);
"restricted information" means information that— is not made available to the public by virtue of regulations under section 86, and relates to and identifies a particular person (including a body corporate).
For the purposes of subsection (8) information identifies a particular person if the identity of that person—