During the hearing, Assange had claimed that Ecuador was moving to end the asylum it has granted him since 2012, telling the court in Quito on Monday that the intention was to hand him over to the United States.
He told the court that the new rules were a sign that Ecuador had decided to push him out of the London embassy where he has been taking refuge since June 2012.
Before he could finish his statement, a government lawyer interrupted him and admonished him against making political statements. But the court ruled against him, meaning that Assange's vigil in the embassy would continue.
Assange's lawyers filed the case this month, accusing the government of violating his fundamental rights and freedoms.
In a statement issued by WikiLeaks at the time, he said that his lawyers would challenge a "protocol" put in place by Ecuador that made it mandatory for his lawyers to hand over personal details before being allowed to see him.
The case was launched on 19 October by WikiLeaks general counsel Balthazar Garcon.
Ecuador cut off Assange's Internet access and phone lines in March, but said recently it would restore them if he adhered to some conditions.
Assange has said that he fears being extradited to the US if he leaves the embassy in London. Last year, US officials said arresting him was a top priority.