On the 14th of March 2006, Dubai’s government issued a law legalising foreign ownership of properties in designated areas of Dubai (article), but doesnt give property owners permanent residence visas or an automatic right to work in Dubai (article).
More info here:
History of Freehold Property in the United Arab Emirates [Dubai] - Property Articles & Information - TEN Real Estate [UAE]