fix email account controller

This commit is contained in:
yuri
2019-03-06 16:19:32 +02:00
parent 5e3a4359f8
commit 247b42474d
5 changed files with 39 additions and 68 deletions

View File

@@ -46,12 +46,8 @@ class Email extends \Espo\Core\Controllers\Record
return $this->getRecordService()->getCopiedAttachments($id);
}
public function actionSendTestEmail($params, $data, $request)
public function postActionSendTestEmail($params, $data, $request)
{
if (!$request->isPost()) {
throw new BadRequest();
}
if (!$this->getAcl()->checkScope('Email')) {
throw new Forbidden();
}