It is legal in California. Peaceful protestors from a neighboring illegal farms are suspected.
It is so heavily regulated and taxed that it's really only quasi-legal. There's still lots of illegal activity.