The 'privilegium fori', Latin for "Privilege of the (legal) forum", is a generic term for legal privileges to be tried in a particular court or type of
court of law.
Typically, it is an application of the principle of trial by one's peers, either by such a
jury or at least by a specific court from that social segment, such as a soldier by a
court martial, a cleric by a
canon court.