SAN FRANCISCO — The California Supreme Court says property owners can’t file lawsuits challenging restrictions in building permits once they construct the project.

The court’s unanimous ruling on Thursday came in a dispute between coastal homeowners in San Diego County over construction of a seawall.

But legal experts say it has implications for landowners throughout the state.

The state high court said landowners cannot accept the benefits of a government issued building permit by constructing the project, but then challenge any burdens the permit imposes in the form of restrictions on the development.

The court said allowing such challenges could leave agencies with no way to address a project’s impacts. The ruling was a victory for the California Coastal Commission and cities throughout California.

John Groen, an attorney for the plaintiffs, said the ruling was particularly bad for small property owners.