A handful of cops and hundreds of people in an angry mob? Is it really a mystery why they didn't fight too hard to keep the barriers shut?
Of course it is always possible to modulate people’s behaviour through incentives and so on, to achieve a very high probability that they will behave in certain ways.
In this case it seems that the balance was in favor of the protestors.