21177.
(a) (1) An action or proceeding shall not be brought pursuant to Section 21167 unless the alleged grounds for noncompliance with this division were presented to the public agency orally or in writing by any a person during the public comment period provided by this division or before the close of the public hearing on the project before the issuance of the notice of determination.(2) Alleged grounds for noncompliance with this division presented to the public agency in writing by a person shall be presented at least 10 days before the public hearing on the project before the issuance of the notice of determination. Written comments presented to the public agency after that time period shall not be included in the record of proceedings and shall not serve as basis on which an action or proceeding may be brought pursuant to Section 21167.
(b) A person shall not maintain an action or proceeding unless that person objected to the approval of the project orally or in writing during the public comment period provided by this division or before the close of the public hearing on the project before the filing of notice of determination pursuant to Sections 21108 and 21152.
(c) This section does not preclude any organization formed after the approval of a project from maintaining an action pursuant to Section 21167 if a member of that organization has complied with subdivision (b).
(d) This section does not apply to the Attorney General.
(e) This section does not apply to any alleged grounds for noncompliance with this division for which there was no public hearing or other opportunity for members of the public to raise those objections orally or in writing before the approval of the project, or if the public agency failed to give the notice required by law.