The man who brutally beat another man more than a decade ago will stay behind bars, after he tried to have his dangerous offender status removed Wednesday.

The Alberta Court of Appeal dismissed Leo Teskey’s attempt to remove his dangerous offender status, which means he will remain in prison indefinitely.

He was first convicted in 2002 of aggravated assault, and was sentenced at the time as a dangerous offender – but the Supreme Court ordered a new trial.

Teskey was convicted again, and found to be a danger to the public in 2010.

He was charged and convicted after seriously beating Dougald Miller, a building manager – he had been walking out of his apartment buildings when he found Teskey sleeping in a hallway and tried to get him to leave.

In the attack, Miller’s ear was nearly torn off, and his skull was crushed, leaving him in a vegetative state with permanent brain damage and needing constant care.

With files from The Canadian Press