Rights group criticised the ruling, saying “no one should be detained for having organised or called for a peaceful demonstration”.