The right to protest peacefully is enshrined in the Indian Constitution—Article 19(1)(a) guarantees the freedom of speech and expression; Article 19(1)(b) assures citizens the right to assemble peaceably and without arms.
Section 144 of the Criminal Procedure Code prohibits any assembly of five or more people in an area if it is believed that such a gathering could disturb the peace.