In some cases, the police have been given carte-blanche to arrest and detain people randomly in the street.