Notwithstanding any other provision of law, local authorities may, by ordinance or resolution, adopt rules and regulations restricting vehicular or pedestrian traffic through any alley by means of gates, barriers, or other control devices, when, in the opinion of the local authority having jurisdiction over the alley, the restriction is necessary for the protection or preservation of the public peace, safety, health, or welfare, subject to the following conditions:
(a)
No ordinance or resolution adopted pursuant to this section shall be enforceable until appropriate signs giving notice of the restriction are posted at every entrance to the alley.
(b)
In the coastal zone, as defined in subdivision (a) of Section 30103 of the Public Resources Code, where the alley provides direct access to any public beach or state waters, the local authority shall comply with Division 20 (commencing with Section 30000) of the Public Resources Code.
(c)
In the area administered by the San Francisco Bay Conservation and Development Commission, where the alley provides direct access to any public beach, state waters, or wetlands, the local authority shall first obtain the concurrence by, or on behalf of, the San Francisco Bay Conservation and Development Commission. The concurrence or objection shall be based on the permits issued by the San Francisco Bay Conservation and Development Commission and in conformance with the policies contained in Title 7.2 (commencing with Section 66600) of the Government Code and Division 19 (commencing with Section 29000) of the Public Resources Code.
(d)
The local authority shall provide access to utility vehicular or pedestrian traffic in order that the utility may maintain, operate, replace, remove, or renew existing and functioning utility facilities.
(e)
No ordinance or resolution adopted pursuant to this section shall prohibit the delivery of freight by commercial vehicles.
(f)
No ordinance or resolution adopted pursuant to this section shall be implemented in a manner that adversely affects the operation of emergency vehicles or the performance of municipal services.
(g)
No ordinance or resolution adopted pursuant to this section shall restrict the access of certain members of the public to the alley, while permitting others unrestricted access to the alley.