A person in whose case the Crown Court—
makes a hospital order or interim hospital order by virtue of section 5 or 5A of the Criminal Procedure (Insanity) Act 1964, or
makes a supervision order under section 5 of that Act,
may appeal to the Court of Appeal against the order.
An appeal under this section lies only—
with the leave of the Court of Appeal; or
if the judge of the court of trial grants a certificate that the case is fit for appeal.