QUEBEC CITY -- The man who murdered six people in a Quebec City mosque in 2017 will be eligible to apply for parole in 25 years rather than 40, the province's highest court ruled Thursday as it declared the section of the Criminal Code allowing consecutive life sentences unconstitutional.

Alexandre Bissonnette, 30, was sentenced in February 2019 to life in prison with no possibility of parole for 40 years.

That sentence has been reduced to 25 years in Thursday's Quebec Court of Appeal decision, which took issue with a 2011 amendment to the Criminal Code that allowed life sentences to be served one after another rather than concurrently, as was previously the case.

The three-judge panel wrote that while a decision to set parole eligibility at 100 or more years "may give some people a sense of satisfaction," it is "grossly disproportionate" because it exceeds the person's expected lifespan.

"It contemplates a possibility that will never be able to come to fruition," the decision read. "This is why the provision is absurd and constitutes an attack on human dignity."

Bissonnette pleaded guilty in March 2018 to six counts of first-degree murder and six of attempted murder. His murder victims were Mamadou Tanou Barry, 42; Abdelkrim Hassane, 41; Khaled Belkacemi, 60; Aboubaker Thabti, 44; Azzeddine Soufiane, 57; and Ibrahima Barry, 39.

In addition to the men killed, five others were struck by bullets.

Witnesses to the crime described the former student, then 27, entering the Islamic Cultural Centre and calmly opening fire on the crowd gathered for evening prayers.

QUESTIONS ABOUT CONSECUTIVE SENTENCES

Quebec Superior Court Justice Francois Huot concluded last year that the consecutive sentencing provision, which would have allowed him to sentence Bissonnette to 150 years in prison, amounted to cruel and unusual punishment.

But he also decided that 25 years was too little for Bissonnette, who he said was driven by "racism and hatred" when he stormed the mosque.

In the end, he sentenced Bissonnette to concurrent life sentences for five murders, and on the sixth added 15 years to bring the total to 40.

The decision was appealed by both the defence and the Crown, who argued for parole eligibility of 25 years and 50 years, respectively.

On Thursday, the Appeal Court agreed with Huot that the consecutive sentencing provision violates the Charter of Rights and Freedoms, but they decided that the judge had erred in rewriting the law to allow for a 40-year period.

They said that with the provision of the Criminal Code invalidated, the sentence must be imposed according to the law as it stood before 2011, meaning Bissonnette can apply for parole after 25 years in prison.

Aymen Derbali, who was shot seven times and left paralyzed from the waist down in the attack, described the reduced sentence as "unjust."

In a brief phone interview, he noted that several recent Canadian mass murderers have received consecutive sentences, including Justin Bourque, who cannot apply for parole for 75 years after killing three RCMP officers and wounding two others in a 2014 shooting in Moncton, N.B.

"Why will (Bissonnette), who killed six in a such a massacre, have 25 years?" Derbali said in a phone interview.

JUSTICE MINISTER EXPECTS 'HURT AND ANGER'

The panel said the reduced sentence was not a judgment on the horror of Bissonnette's actions on Jan. 29, 2017, but rather on the constitutionality of the law.

"In Canada, even the worst criminal having committed the most heinous of crimes benefits at all times from the rights guaranteed under the Charter," the decision reads.

Later on Thursday, federal Justice Minister David Lametti told CTV News that he understands the reaction by survivors.

“I know that today’s decision is going to rekindle a great deal of hurt and anger among those who were affected by this terrible crime: the victims, their families and friends, people in Quebec and across the country," Lametti said in a written statement.

"There are important questions raised by this judgement and we will take the necessary time to fully examine it," he said.

"For today, our thoughts are focused on the families and survivors. We have stood with them and supported them throughout this awful tragedy and we will continue to do so."

In their ruling Thursday, the judges also noted that setting Bissonnette's parole eligibility at 25 years does not mean he will automatically be allowed to walk free at that time, or ever, since his sentence is for life.

It will be up to the Parole Board of Canada to decide if Bissonnette remains a danger to society or has been sufficiently rehabilitated to leave prison once he's eligible to apply, the ruling noted.

This report by The Canadian Press was first published Nov. 26, 2020.

--With files from CTV News