I would need a screenshot of the log to say for sure, but casting Wish itself with a Drannith Magistrate in play is perfectly fine, they just shouldn't be able to cast any card chosen from their sideboard. And if we're talking about the older wish cards like Burning Wish, Firedrake is right, those add the card to your hand which would sidestep Drannith Magistrate's restriction.