An educational authority that operates, or proposes to operate, an educational institution wholly or mainly for students of a particular sex or religion, or who have a general or specific impairment, may provide accommodation wholly or mainly for—
(a) students of the particular sex or religion; or
(b) students who have a general, or the specific, impairment.