The city of Buffalo lawfully denied legal counsel to a police officer who was sued after being accused of using excessive force during an incident that was recorded and published by a local news station, the state’s highest court said in a decision this week.

The Court of Appeals ruled that a section of the city’s local laws in Buffalo could lawfully be used to deny Officer Corey Krug access to a city-paid attorney after the incident.