A bill that would enable New York prosecutors to bring cases against those who have received presidential pardons was signed into law on Wednesday, Gov. Andrew Cuomo’s office announced.

“No one is above the law and New York will not turn a blind eye to criminality, no matter who seeks to protect them,” Cuomo said.

“The closure of this egregious loophole gives prosecutors the ability to stand up against any abuse of power, and helps ensure that no politically motivated, self-serving action is sanctioned under law. I thank the Attorney General for her work to advance this much-needed reform and by signing it into law we are taking another step toward a stronger, fairer and more just Empire State for all.”

The bill was proposed as a workaround of sorts in case President Donald Trump were to pardon any individuals associated with him who are also facing potential charges in New York.

The measure was sought by Attorney General Letitia James amid investigations of the president’s financial dealings by her office as well as a probe by Manhattan District Attorney Cy Vance.

“We have a responsibility to ensure that individuals who commit crimes under New York state law are held accountable for those crimes,” James said.

“This critical new law closes a gaping loophole that could have allowed any president to abuse the presidential pardon power by unfairly granting a pardon to a family member or close associate and possibly allow that individual to evade justice altogether. No one is above the law, and this commonsense measure will provide a reasonable and necessary check on presidential power today and for all presidents to come.”

The bill was initially proposed as President Donald Trump’s former campaign manager, Paul Manafort, would receive a presidential pardon following money laundering and fraud convictions. But an amended version of the bill would only allow prosecutes to seek charges against those who have worked for a sitting president or were part of their family.

The measure was sponsored by Sen. Todd Kaminsky and Assemblyman Joe Lentol.