I think the answer is that Yes the law is broken if you discriminate on grounds of race/ethnicity etc. Suggest you complain to the paper that carried that advert.