Media giant Quebecor Inc. is claiming the embattled Montreal-based Just For Laughs company cannot be sold without its consent.

Quebecor filed a request for an injunction in Quebec Superior Court today demanding its 2012 partnership deal with the comedy festival be respected.

It claims the agreement gives it a right of first refusal regarding the sale of the company.

Quebecor says it has the right to buy the festival and that if it rejects the asking price, Just for Laughs cannot be sold to a third party for less.

Gilbert Rozon, founder and majority shareholder of Just For Laughs, announced he was selling the company after becoming the subject of numerous allegations last year of sexual harassment and abuse.

The sale has been entrusted to RBC Capital Markets, which is the target of Quebecor's lawsuit.