If the answer above is None it means there is no specific mention in the legislation, but you still need to ask local law enforcement before drinking in Morocco.
Legislative Decision No. 3.177.66 of 1967 Art 28-29
You can find more legal details and links here:
Wikipedia Legal Drinking Page