There had been confusion about whether undercover police were allowed to go that far following the collapse of a case against environmental activists in Nottinghamshire after it emerged the group was infiltrated by an officer called Mark Kennedy, who had been in sexual relationships with two women in the campaign.