Reference? As far as I’m aware there’s nothing explicit and despite prospective tenants regularly (anecdotally, the majority of landlords) getting rejected explicitly based on nationality/ethnicity, there has been exactly 0 consequences so far.
(I’d love to be proven wrong but my understanding is at the very least it’s murky and has never been tried in court)