General order 18
From FEInfobase
Upon being accused of treason against the Federation, Starfleet personnel may demand a trail conducted by the Federation judiciary. If the individual is acquitted, Starfleet Command shall have no further legal recourse against the accused in said matter.