Morocco can play in the 2017 Africa Cup of Nations qualifiers after the court of arbitration for sport (CAS) upheld “in large part” their appeal against Confederation of African Football (CAF) sanctions.

“The suspension … of the next two editions of the African Nations Cup, in 2017 and 2019, is annulled, and the fine imposed to the Royal Federation of Moroccan Football is reduced to $50,000 [£33,700],” CAS said in a statement on Thursday.

CAF had barred Morocco from the 2015 tournament, after the country refused to host the competition citing Ebola virus fears, and also banned them from entering the 2017 and 2019 editions while imposing a fine of $1m (£673,000).

This year’s tournament was held instead in Equatorial Guinea, and won by Ivory Coast.