City police barred from carrying automatic weapons during patrols