In my game, we tend to restrict longarms more than sidearms in civilized areas. (It's worth remembering that many city gun laws in the Old West were stricter than anything in place today.) Sometimes there is permitting involved, sometimes they accept the permits filed at the company HQ on Naboo, sometimes there are not any permits required, but it's all hand-waved with the rest of the paperwork.
As has been said above - it seems to be a local issue more than a galactic one, so I'd take it on a planet-by-planet or even city-by-city basis as plot requires.