A woman is suing a Chicago dentist who allegedly took photos of her son while he was changing in a North Avenue Beach men’s bathroom over the summer.

The lawsuit, filed Monday in Cook County Circuit Court, alleges that 68-year-old Gregory Stump was seen trying to take lewd photographs or videos of the boy in a bathroom stall on July 21.

Stump was arrested and charged with one count of felony possession of child pornography after he was caught “surreptitiously” recording a teenage boy in the bathroom about 4:15 p.m. that day, Chicago Police said.

According to court records, a police officer found Stump naked in a stall, using one hand to record with his cellphone over the partition and masturbating with the other.

Images of a preteen boy using a urinal, the bare buttocks of another boy as he pulled up his shorts, and of adult men using the urinals were found on Stump’s cellphone during a warrant search, according to Assistant Cook County State’s Attorney Joseph Carlson.

The woman who filed the lawsuit seeks unspecified damages against Stump for invasion of privacy based on intrusion upon the seclusion of another.

Stump has had a dental practice in northwest suburban Schaumburg.

His lawyer, Richard Kling, persuaded a judge to alter the terms of Stump’s release during a July 24 court hearing so he could continue to see underage patients, but only if their parents are present.

The Illinois Department of Financial and Professional Regulation did not immediately respond to an inquiry on the status of Stump’s dental license.

However, his license remained in good standing as of Tuesday, and there were no disciplinary actions reported, according to the state agency’s website.

Stump and his lawyer could not immediately be reached for comment.