I was under the impression that owning a gun was no longer a "right" in California.
In any event, it should be obvious that these type of laws are intended to restrain the poor in general and the minorities in specific. 14th Ammendment issues would apply if 2nd Amendment issues did not.
Normally, the 14th amendment would cover a citizens rights at the state level, but the USSC never incorporated the 2nd amendment under the 14th. Bottom line: California could ban guns if it wanted to.