The City Council and NYPD reach an agreement on controversial legislation that would have forced police officers to get proof they had consent for searching someone.

The legislation – called the Right to Know Act – has been tabled.

Most of the proposed changes will be made by the NYPD, sparking some criticism from the bill’s supporters.

Under the agreement, police officers will have to ask someone if they can conduct a search and get a "yes" before moving forward.

Officers will also have to offer people a business card after any searches.

These changes will be reflected in the NYPD patrol guide.

In a statement, City Council Speaker Melissa Mark Viverito said:

"This is yet another set of critical police reforms that will continue to keep New Yorkers safe while also ensuring better interactions with the communities they serve, these reforms serve as a model for how we can work collaboratively to achieve lasting change."

All of the changes are expected to go into effect within nine months.