New York’s attorney general sued the National Rifle Association’s former advertising agency to enforce a subpoena stemming from the state’s probe of the gun-rights group’s nonprofit status.

The agency, Ackerman McQueen, has said it can’t comply with the July 8 subpoena without first giving the NRA veto power over what it hands over, Attorney General Letitia James said in a lawsuit filed late Monday.

Ackerman McQueen, which helped shape the NRA’s mission for decades before a public split this year, told the attorney general it wants to comply with the subpoena but fears it’s legally required to allow the gun group to weigh in under a nondisclosure agreement, according to the filing.