Notwithstanding the provisions of the Criminal Code 2004 creating the offence of sexual harassment, any act of sexual harassment against an employee committed by an employer, managerial employee or co-employee shall constitute unlawful discrimination based on sex within the meaning of section 267 and the employee shall be entitled to compensation in accordance with this Act.