Credit: Evan Agostini/Getty Images; Steve Granitz/WireImage.com

Jesse James' ex-wife, porn star Janine Lindemulder, lost a custody battle over their 5-year-old daughter Sunny, who has been raised by James and wife Sandra Bullock since January.

Lindemulder, 39, was denied her request for "expanded visitation rights" in a California court on Monday following her claim that Bullock has prevented her from seeing her daughter, the Los Angeles Times reports.

Bullock, 45, has been helping James, 40, raise Sunny for the past year while the adult film actress was in prison for tax evasion. She served six months in jail and was released in July.

In court papers, James said he was determined not to let his ex-wife gain custody of their daughter because he feared Sunny would be introduced to a dangerous world if she lived with her mother.

Before Lindemulder was sentenced, Bullock also wrote a letter to the judge and claimed that the child was left alone during the day while the porn star was "asleep from drug use."

"I am aware that Janine has claimed many times that my desire to have [the girl], was because I could not have children of my own [James has three kids with his first wife, Karla]," Bullock says, adding, "that couldn't be farther from the truth."

According to court documents, Lindemulder's weekly visitation rights are now limited to daytime hours.

She asked Orange County Superior Court Commissioner Thomas Schulte to expand her visitation to include overnight stays, but the request was denied. She was, however, reportedly granted one overnight visit with her daughter on Christmas Eve, despite objections from James and Bullock.