I live in California. My 10 day waiting period was up today. I got it from the dealer & went straight to the range. I had put 40 rounds through it when the range guy came up to me & kicked me off the range. He said ak 47 pistols are not legal in Ca.

I got this gun legally. Its in my name. Has a ca. Bullet button & a 10 round mag. Am i missing somthing here? Is this guy wrong? Or are they illegal even with a bullet button & i was sold an illegal weapon? Your input please & thanks.