A judge is expected to issue a ruling early next week on whether to allow a temporary restraining order to stop the Santa Ana Police Department from using a surveillance tape in an internal investigation over officers’ questionable actions in a pot shop raid.

The video, which has drawn a great deal of attention, was recorded from a hidden camera in a May 26 raid at Sky High Collective in Santa Ana.

It shows officers making derogatory remarks about a disabled woman and purportedly eating pot edibles and playing darts during the dispensary raid.

Three unidentified officers and the Santa Ana Police Officers Association are now suing the city and police department to prevent internal affairs investigators from using the video to determine if department policies were violated.

In a hearing on Thursday, attorney Corey Glave, who represents the union and the three officers, argued that the officers had a reasonable expectation of privacy since they didn’t know they were being recorded.

When officers raided the store, they disabled surveillance cameras and moved the customers outside, but they missed a hidden camera on a shelf.

The team began joking and having “adult conversations,” confident that they were not being recorded, Glave said. Undercover officers felt comfortable enough to remove their masks.

“And of course we know that they’re not edibles because officers already passed a drug test,” Glave told Superior Court Judge Ronald L. Bauer.

In a brief interview following the hearing, Glave clarified that one officer had submitted and passed a drug test. He declined to elaborate further about the tests.

Glave said officers are protected by the California Invasion of Privacy Act, which makes it illegal for any person without the consent of another party to record confidential audio or video communications.

Attorney Anthony Snodgrass, representing the city, argued that officers in this case did not have a reasonable expectation of privacy since they were conducting police work inside a business. It would be different, for example, if officers were chatting in their locker room, he said.

“This is not in a private type of area where they would have that expectation,” he said.

After listening to arguments, Bauer said he expected to issue a ruling within two or three days.

Matthew Pappas, who is representing Sky High in a federal lawsuit against the police department, distributed clips and unedited versions of the video to several television stations and online news organizations, including the Register in June.

Contact the writer: kpuente@ocregister.com, Staff writer Scott Schwebke contributed to this report.