A dispensary in general is a violation of Federal law. The Feds are welcome to bust them if they are near a school or miles away from a school.
The question is are these a violation of California law. I haven’t seen anything yet that suggests that.
There is the School Zone Anti-Drug law . If you sell a controlled substance within a 1000 feet of a school you can go to jail