It is accepted that an EU country can decide how many non-EU immigrants it will take in.
Would-be immigrants from Africa and Asia face much tougher restrictions, and it is taken for granted that it is that European countries have the right to impose such restrictions.