In an action alleging a violation of this subtitle based on harassment, an employer is liable:
(1) for the acts or omissions toward an employee or applicant for employment committed by an individual who:
(i) undertakes or recommends tangible employment actions affecting the employee or an applicant for employment, including hiring, firing, promoting, demoting, and reassigning the employee or an applicant for employment; or
(ii) directs, supervises, or evaluates the work activities of the employee; or
(2) if the negligence of the employer led to the harassment or continuation of harassment.