It is unlawful for a public authority in carrying out any functions of the authority to do any act which constitutes discrimination.
It is unlawful for a public authority to subject a person to harassment in the course of carrying out any functions of the authority which consist of the provision of—
which does not fall within section 20.
In this section “public authority”—
The persons mentioned in this subsection are—
In relation to a particular act, a person is not a public authority by virtue only of subsection (2)(a) if the nature of the act is private.
This section is subject to sections 19C to 19F.
Nothing in this section makes unlawful any act of discrimination or harassment which—