The California legislature “allows” it? You seem to still be having trouble with the definition of a “Right”.
Which is why the right is protected against local bans.
Poor you.