(a)The prosecutor or the accused, is at all times, after the judge-advocate is named to act on the Court, entitled to his opinion on any question of law relative to the charge or trial, whether he is in or out of Court, subject, when he is in Court, to the permission of the Court.