the courts, or in cases of urgency, their director of proceedings;
c.
the police in cases specifically provided for by law.
2 The Confederation and the cantons may restrict the powers of the police to order or carry out compulsory measures to police officers of a specific rank or function.