Britney Spears has regained temporary visitation rights of her sons, her attorney said Sunday.
"Yes, she has visitation with the children," her lawyer, Anne Kiley, said in an email to The Associated Press without elaborating.
Spears was spotted driving with the boys, Preston, 2, and Jayden James, 1, on Saturday in the San Fernando Valley, People magazine reported on its website.
A presumed court-appointed monitor was in the passenger seat of the white Mercedes convertible, and her sons were in the back seat, the magazine reported.
Superior Court Commissioner Scott Gordon had told Spears on Wednesday that she could not visit her two young children without a parenting coach present until she complies with a court order.
The mandate did not spell out what directives Spears failed to comply with.
Among other things, Gordon ordered her to undergo random weekly drug testing, citing evidence that Spears engaged in "habitual, frequent and continuous use of controlled substances and alcohol.
A hearing on the matter was scheduled for Oct. 26.
Wednesday's ruling followed an emergency hearing, the latest in a custody battle between Spears and ex-husband Kevin Federline.
A phone message left with Federline's attorney, Mark Vincent Kaplan, was not immediately returned Sunday.