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.

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."

Bullock says, Janine has claimed many times that the actress struggles for the baby-girl because Sandra can't have one of her own, but "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.