Morocco court convicts ex-Gitmo detainee on terror charges