Nothing in this section shall prohibit a locality from adopting workplace rules relating to terms and conditions of employment of the workforce. However, no locality shall adopt any workplace rule, other than for the purposes of a community services board or behavioral health authority as defined in § 37.2-100, that prevents an employee of that locality from storing at that locality's workplace a lawfully possessed firearm and ammunition in a locked private motor vehicle. Nothing in this section shall prohibit a law-enforcement officer, as defined in § 9.1-101, from acting within the scope of his duties.
The provisions of this section applicable to a locality shall also apply to any authority or to a local governmental entity, including a department or agency, but not including any local or regional jail, juvenile detention facility, or state-governed entity, department, or agency.
Any such ordinance may include security measures that are designed to reasonably prevent the unauthorized access of such buildings, parks, recreation or community center facilities, or public streets, roads, alleys, or sidewalks or public rights-of-way or any other place of whatever nature that is open to the public and is being used by or is adjacent to a permitted event or an event that would otherwise require a permit by a person with any firearms, ammunition, or components or combination thereof, such as the use of metal detectors and increased use of security personnel.
The provisions of this subsection shall not apply to the activities of (i) a Senior Reserve Officers' Training Corps program operated at a public or private institution of higher education in accordance with the provisions of 10 U.S.C. § 2101 et seq. or (ii) any intercollegiate athletics program operated by a public or private institution of higher education and governed by the National Collegiate Athletic Association or any club sports team recognized by a public or private institution of higher education where the sport engaged in by such program or team involves the use of a firearm. Such activities shall follow strict guidelines developed by such institutions for these activities and shall be conducted under the supervision of staff officials of such institutions.
Va. Code § 15.2-915