The only requirement, according to the Spanish minister, is Morocco’s reopening of its international borders.

Spanish FM Spain is Ready to Facilitate Transit of Moroccan Diaspora
Spanish Foreign Minister Arancha Gonzalez Laya.