A recent decision in the Scottish courts offers a stark warning of the need to consider issues of legal privilege at an early stage when conducting an internal investigation.