Except as provided in Section 21968, a local authority may adopt rules and regulations by ordinance or resolution prohibiting or restricting persons from riding or propelling skateboards, or electrically motorized boards, on highways, sidewalks, or roadways.