Hong Kong\'s court of appeal on Wednesday overturned a landmark ruling that opened the door for thousands of foreign maids to claim residency in the southern Chinese city. \"It must be up to the sovereign authority to decide the extent to which the status of permanent resident should be conceded to foreign nationals,\" Judge Andrew Cheung wrote in a 66-page judgement accepting the government\'s appeal. The High Court ruled on September 30 last year that Philippine domestic worker Evangeline Banao Vallejos had the right to request permanent residency status, something that had been denied to foreign maids until then. But the government argued that the authorities had discretionary power to decide who was eligible for residency, rejecting arguments that restrictions on maids were unconstitutional and discriminatory. The three-judge panel on the court of appeal unanimously accepted that argument, saying the High Court could not override the government\'s authority to decide who can live in the city and who cannot. The decision will come as a major blow to tens of thousands of maids who could have been eligible for residency status if the Vallejos case had been established in law. \"It is a fundamental principle in international law that a sovereign state has the power to admit, exclude and expel aliens,\" Cheung wrote. Vallejos\'s lawyers were not present in court but they have previously indicated they will take the case to Hong Kong\'s highest court, the Court of Final Appeal, if necessary.