The New Jersey Supreme Court on Monday ruled that documents prepared by a lawyer representing a public entity and shared with a third party with a common interest are protected by the common-interest privilege and are shielded from the state’s Open Public Records Act.

In a unanimous ruling in O’Boyle v. Borough of Longport, the court said maintaining the privilege is necessary to ensure that the client—the public agency—receives the best possible representation from its attorney.