Under sections 160ZA(2) and 185(2) of the Housing Act 1996 (c. 52) (“the 1996 Act”), a person who is subject to immigration control is ineligible for an allocation of housing accommodation by a local authority under Part VI of that Act, or for housing assistance under Part VII of that Act, unless they come within a class of persons prescribed in regulations by the Secretary of State.