public function deleteEmailLogAction()
{
if (!$this->getUser()->isAllowed("emails")) {
throw new \Exception("Permission denied, user needs 'emails' permission.");
}
$success = false;
$emailLog = Tool\Email\Log::getById($this->getParam('id'));
if ($emailLog instanceof Tool\Email\Log) {
$emailLog->delete();
$success = true;
}
$this->_helper->json(["success" => $success]);
}