The royal commission into child sex abuse has broken its own non-publication order, revealing the identity of the victim of a notorious paedophile.
The former Brisbane Grammar School student was among many victims who gave statements or fronted the commission under a pseudonym to protect them.
But the royal commission failed to redact his name in a statement given to its investigation into the horrific abuse carried out by serial paedophiles Kevin Lynch and Gregory Robert Knight in two Brisbane private schools.
That statement, which was properly redacted after Fairfax Media brought it to the commission's attention on Wednesday, had been published on its website, likely during hearings held across two weeks in November 2015.
It was among almost 100 documents published to the site.
The boy told the commission he had suffered abuse at the hands of child abuser Lynch and claimed to have complained to a teacher, who did nothing but the teacher denied knowing.
The student told the commission he had been instructed to masturbate in front of the counsellor, who had also pressed his fingers into the area above the child's penis.
Lynch killed himself in January 1997, the day after he was charged with abusing a different student from the Bald Hills school.
The royal commission said the statement was redacted but "an error occurred and a person's name remained in the statement".
"That name is the subject of a non-publication order," a spokeswoman said, in a statement.
"As soon as the Royal Commission was made aware of the error, the statement was taken down from the website and the necessary further redactions made."
Lynch sexually abused dozens, if not hundreds of boys at Brisbane Grammar School in the '80s before moving to St Paul's School where his abuse continued in the '90s.
The royal commission was also investigating the institutional response to Gregory Robert Knight, who abused boys in South Australia before Paul's headmaster Gilbert Case hired him in 1981, and gave him a positive reference despite allegations of exposing himself to students and fondling genitals.
Counsel assisting David Lloyd has asked the royal commission to make damning findings against Grammar, saying a large number of students likely would not have been abused had former headmaster Maxwell Howell investigated sexual abuse claims from students.