A detective with the Chicago Police Department is suing the city of Chicago for allegedly violating the Illinois Whistleblower act by retaliating against her for reporting the possible misconduct of two officers.

Beth Svec, a member of the police department for more than 18 years, was chosen in July 2015 to participate in a pilot program on the South Side in which detectives conducted follow-up investigations on cases involving arrests for unlawful possession of guns, according to the lawsuit filed Thursday in Cook County circuit court. The policy was expanded to the entire city in fall 2015.

Svec was assigned to work in the Area South police facility at 727 E. 111th St., investigating gun cases in four police districts, the suit says. She was assigned on May 30, 2016, to investigate a gun case involving two officers who arrested two men in the Calumet District.

The officers told Svec in an interview that they were driving down Stewart Street that morning when they saw a man sitting on top of a gun on a barstool on the front porch of a home, the suit says.

The officers said they approached the man and took him into custody when another man who was on the porch got angry and punched one of them in the head, according to the suit. They said that man was then subdued and also arrested.

The two officers were seeking felony charges of unlawful possession of a weapon and aggravated battery to a police officer for the two men, according to the suit. The version of the story they told was documented in an official police report that both officers wrote and submitted to supervisors.

Svec followed up by interviewing the two men who were arrested, both of whom refuted the officers’ allegations, the suit says. Svec then interviewed eyewitnesses who saw the arrest and recovered video that contradicted the officers’ accounts.

When Svec told the officers about her findings and that their version of the story was false, they immediately told their supervisors, according to the suit.

Svec was informing two of her supervisors about what was happening when the officers’ supervisors entered the meeting, according to the suit. One of the officers’ supervisors insisted that felony charges should still be pursued against the two men.

Svec contacted the Cook County state’s attorney’s office and spoke with assistant state’s attorneys about the gun case on May 30 and 31 last year, according to the suit. The state’s attorney’s office rejected the request to charge the two men with felonies and contacted the CPD Bureau of Internal Affairs, which started its own investigation of the case.

The circumstances of the case is under investigation by the city’s Independent Police Review Authority, which interviewed Svec as part of their investigation, the suit says. She was also interviewed by the United States Department of Justice.

Svec was later informed that she was being transferred to the Englewood District, according to the suit. She was told she could no longer investigate unlawful gun possession cases and was transferred to “midnight shifts.”

In the lawsuit, Svec alleges that the city of Chicago, through its agents and employees, “retaliated against Svec because she disclosed what she had reasonable cause to believe was a violation” by transferring her to a less favorable assignment and less desirable working hours.

Svec is seeking more than $50,000, as well as reinstatement to the assignment she had prior to her transfer and compensation for the cost of bringing the suit to court.

Bill McCaffrey, spokesman for the city’s Law Department, said the city has not received the lawsuit and could not comment.