Justice Manmohan Singh said, in an order made available Monday, that the curbs were not applicable to the theatre version of Ranbir Kapoor and Deepika Padukone starrer, which was released in the cinema halls last week.
The court also issued notices to the director, producer and dialogue writers of "YJHD" and posted the matter for hearing July 16.
The court's order came on an injunction suit filed by Hamdard National Foundation, the manufacturer of Rooh Afza.
The manufacturer claimed that the product was a household name in the country and outside India and the film contained some "objectionable" dialogues about the Unani recipe.
SRK-Gauri anniversary: B-Town stars and their non-filmi better halves
Birthday special: Popular mothers and daughters in Bollywood
Spotted: 'Kaabil' star Hrithik Roshan with dad Rakesh Roshan
'Rock On 2' trailer launch: Farhan, Shraddha enthrall audience with live gig
Photos: Deepika Padukone, Sushmita Sen with daughters at Mumbai airport