Who had the right to grant powers to a magistrate?