hi,
Moroccan authorities are the ones who will check the validity period of your passport. Airlines don’t care, as long as your passport is valid on the day you board the plane.
Moroccan law states:
Moroccan regulations regarding entry into Morocco require that any foreigner wishing to travel to Morocco must hold a passport or any other valid travel document (
valid at least until the end of their stay in Morocco), recognized by the Moroccan state as a travel document (Law No. 02-03 of November 11, 2003, on the entry and stay of foreigners in Morocco).
(see:
http://www.amb-maroc.fr/BienvenueMaroc/voyager_au_maroc.htm)
So you’re good to go.
best regards,
elhine