School grounds may be fenced and gates therein may be equipped with locks, provided that safe dispersal areas based on 3 square feet (0.28 m2) per occupant are located between the school and the fence. Such required safe dispersal areas shall not be located less than 50 feet (15 240 mm) from school buildings.
Every public and private school shall conform with Section 32020 of the Education Code which states:
The governing board of every public school district, and the governing authority of every private school, which maintains any building used for the instruction or housing of school pupils on land entirely enclosed (except for building walls) by fences of walls, shall, through cooperation with the local law enforcement and fire-protection agencies having jurisdiction of the area, make provision for the erection of gates in such fences or walls. The gates shall be of sufficient size to permit the entrance of the ambulances, police equipment and fire-fighting apparatus used by the law enforcement and fire-protection agencies. There shall be no less than one such access gate and there shall be as many such gates as needed to assure access to all major buildings and ground areas. If such gates are to be equipped with locks, the locking devices shall be designed to permit ready entrance by the use of the chain or bolt-cutting devices with which the local law enforcement and fire-protection agencies may be equipped.