lead capture improvements

This commit is contained in:
yuri
2019-08-05 16:45:16 +03:00
parent 06c8cbac52
commit 7a919dedfd
9 changed files with 167 additions and 5 deletions

View File

@@ -69,4 +69,11 @@ class LeadCapture extends \Espo\Core\Controllers\Record
return $this->getRecordService()->generateNewApiKeyForEntity($data->id)->getValueMap();
}
public function getActionSmtpAccountDataList()
{
if (!$this->getUser()->isAdmin()) throw new Forbidden();
return $this->getServiceFactory()->create('LeadCapture')->getSmtpAccountDataList();
}
}