An educational authority that operates an educational institution or program wholly or mainly for students of a particular sex, race, religious belief, age or age group or students with a general or particular impairment may exclude from that institution or program—
(a) people who are not of the particular sex, race, religious belief, age or age group; or
(b) people who do not have a general, or the particular, impairment.