If a sheriff decides not to make an order under section 131A 131A(3), an appropriate officer may appeal to the Court of Session.
If a sheriff decides not to make an order under section 131ZB(3) or 131AA(2), the prosecutor may appeal to the Court of Session.
If a sheriff makes an order under section 131A 131ZB(3), 131A(3) or 131AA(2), a person affected by the order may appeal to the Court of Session.
But the person mentioned in section 131A(2)(a) 131ZB(2)(a), 131A(2)(a) or 131AA(2)(a) (as applicable) may not appeal.
An appropriate officer may appeal to the Court of Session against—
An appeal under this section must be made before the end of the period of 21 days starting with the day on which the decision or (as the case may be) the order was made.
On an appeal under this section the Court of Session may—
In this section "appropriate officer" has the same meaning as in section 120A.