The laws says that all couples (Moroccan couple, Tourist couple or Mixed) are not permitted to share an hotel room without being married not only Moroccan with tourist. Some hotels turn a blind eye for tourists couples, even some Riads for all but to be honest not Respectable Riads as you said.