Human Rights Act 1993, s 21(2)(a)
It’s illegal discrimination if you’re discriminated against because of something about a friend or relative of yours, rather than something directly about you – for example, if your parents are lesbian partners.