Ryanair cabin crew can choose to be subject to the employment law of the country they are based in, not that of the airline, the European Union top court ruled on Thursday, dealing the low-cost airline a setback.

Ryanair lost today an EU court battle in which the airline had sought to continue imposing business-friendly Irish labor laws on cabin crew working elsewhere in Europe.

The European Court of Justice in Luxembourg ruled in favor of cabin crew based at the Irish carrier’s Charleroi airport base in Belgium. The employees took the airline to a local court, believing Belgian law would be more favorable to them.

Ryanair argued that Irish law applied to their Irish contracts.

“The Court points out first of all that, as regards disputes related to employment contracts, the European rules concerning jurisdiction are aimed at protecting the weaker party,” the Luxembourg-based ECJ said in a statement.

“Those rules enable inter alia an employee to sue his employer before the courts which he regards as closest to this interests,” it said.

The ruling will come as a relief to cabin crew in Europe who are unsure what laws apply to them.

The crew involved in the case had employment contracts drawn up under Irish law which said their work was to be regarded as being carried out in Ireland since they were working on Irish-registered aircraft.

But Charleroi airport in southern Belgium was designated as their base, meaning they started and ended their working days there and had to reside within an hour of that airport.