The European Court of Justice (ECJ) has ruled that European Union member states are not allowed to kick asylum seekers out of asylum homes even if they have been violent in the past.

The ruling comes after a case involving an Afghan migrant in Belgium who had been involved in a fight between other migrants in an asylum home and was kicked out of the home for 15 days, during which he lived on the streets of Brussels or with his friends, Kronen Zeitung reports.

The ECJ ruled that the decision to remove the Afghan, even if just temporarily, was a violation of EU law and that a 2013 regulation on refugees banned such penalities for offences, even if they were violent.

The court went on to say that basic needs for asylum seekers must be met, “permanently and without interruption,” and said it was not good enough that the asylum home gave the migrant a list of homeless shelters he could visit.

While the judges on the court banned the action of the asylum home, they said it was still permissible for EU member states to imprison migrants for offences or to move them to other asylum accommodations.

Belgian Senator Blasts Elites over Consequences of Mass Migration https://t.co/Sp7jq17J6n — Breitbart London (@BreitbartLondon) January 22, 2019

Belgium, like Germany, Sweden and other countries, has seen a large influx of migrants since the height of the migrant crisis in 2015, which led to criticism earlier this year by Belgian Senator Alain Destexhe who claimed that elites in the country did not forecast the consequences of allowing in so many migrants.

“A large part of the immigrant population is not integrated, neither economically (it depends strongly on the social system), nor culturally, which is even more serious: they live according to value systems that are sometimes incompatible with our laws, our history, and our traditions,” he said.

Crime in asylum homes is also common across Europe. In Germany, it was claimed in March that police in rural Boostedt were covering up the extent of crime in local asylum seeker housing in order to not “stir up prejudice.”