A New York state judge has allowed former Sullivan & Cromwell associate Aaron Charney to replead his sexual orientation discrimination suit against the firm, finding that some of his allegations are “irrelevant” and potentially violative of disciplinary rules.

Sullivan & Cromwell had hoped Manhattan Supreme Court Justice Bernard Fried would dismiss Charney’s suit with prejudice on the grounds that his complaint disclosed client and firm confidences. But in a decision Monday striking the complaint with leave to replead, the judge said much of the allegedly secret information Charney put in his complaint had already been widely disseminated by Sullivan & Cromwell itself.