Human rights groups have condemned the measures , saying they are a threat to democracy .