Gun rights advocates in California are cheering a court ruling that could allow more people to obtain a concealed weapons permit. Advocates estimate two million more Californians could soon get the permits.

Law enforcement officers would be required to check state firearms records as part of routine welfare checks under legislation proposed in the wake of the deadly rampage last month near the University of California, Santa Barbara.

The National Rifle Association is suing on behalf of the San Francisco Veteran Police Officers Association over the city’s upcoming ban on the possession of gun magazines capable of holding more than 10 rounds.