Maybe I'm not being very clear.
If a migrant who is unmarried comes here and is granted the right to stay, if they then later on get married to a foreign national who lives abroad and does not have the right to stay in the UK, that new spouse will not be permitted entry into the UK.
Basically...