Presumably all residents, including those from other EU/EEA countries, would be allowed to buy. I believe discrimination against nonresidents is allowed under EU law in many contexts, for example for social benefits. (But not allowed in other contexts, for example discrimination against nonresidents can restrict the free movement of capital.)