BALTIMORE (AP) — A judge has ruled that a Towson University football player who suffered a near fatal heatstroke two years ago cannot be prevented from rejoining his team on the field.

U.S. District Judge Richard D. Bennett ruled Friday that the university must allow 22-year-old lineman Gavin Class to start practice Aug. 9 with the rest of the team.

Class filed a disability discrimination lawsuit against the university in May after Towson barred him from outdoor practices with the team, citing the severity of his earlier injury.

In August 2013, Class collapsed during practice and spent two months in the hospital undergoing more than a dozen surgeries, including a liver transplant.

Towson spokesman Ray Feldmann told the Baltimore Sun it is too early to determine if the university will file an appeal.

(Copyright 2015 by The Associated Press. All Rights Reserved.)