If an employee is harassed/sexually harassed/discriminated against at work is the employer liable?

Where an employee is harassed either in the workplace or otherwise in the course of his or her employment, by the employer, a fellow employee or a client, customer or other business contact of the employer, that harassment constitutes discrimination. The employer is liable under vicarious liability for anything done in the course of the employee’s employment unless the employer can prove that she/he took reasonable practicable steps to prevent the harassment or discrimination.