Thailand's military-installed Cabinet has approved a bill curbing public gatherings after years of political demonstrations led to violence and often paralyzed the country's capital.

Deputy government spokesman Maj. Sansern Kaewkamnerd said the Cabinet on Tuesday approved the bill, which would require protesters to inform police about rallies at least 24 hours before they are held. It would also ban all demonstrations at the prime minister's office, government offices, airports, train stations and bus terminals.

The military declared martial law and staged a coup earlier this year after months of often-violent protests. Under martial law, all political gatherings of five or more people are banned.

The bill must be approved by the military-installed National Legislative Assembly before taking effect.

Police recently blocked attempts by political and environmental activists to hold rallies.