Irish airline Ryanair has criticised a ruling by a Spanish court over its baggage policy.
It centered around a woman who was charged €20 on a flight from Madrid to Brussels.
The passenger had a bag weighing 10 kilograms and did not have a 'Priority' ticket.
The Provincial Court of Madrid said it considered the charge "abusive".
It said it "condemns" the company for forcing the passenger to pay a supplement at the time of boarding even though the carry-on bag, by its size and weight, "could be perfectly transported in the cabin".
The court has also ordered Ryanair to return the €20 fee to the passenger, plus interest.
Un juzgado de Madrid condena a Ryanair a devolver un suplemento cobrado a una pasajera que llevó una maleta de mano en la cabina al considerarlo abusivo https://t.co/JmGpTeCfsV
— Poder Judicial (@PoderJudicialEs) November 20, 2019
It has ordered Ryanair to remove the clause from its terms and conditions.
However the judge dismissed a claim of 'moral damages' against the airline.
The sentence cannot be appealed.
In response, Ryanair said: "This ruling will not affect Ryanair's baggage policy.
"It is an isolated case which misquoted the [Court of Justice of the European Union] and misinterpreted the airlines' commercial freedom to determine the size of their cabin baggage".
It comes after an Italian regional court in Lazio recently ruled against Italy's Competition Authority.
It found that Ryanair's policy was fully compliant with EU law.