attachments changes

This commit is contained in:
yuri
2017-11-20 15:19:14 +02:00
parent 3d2ff947e4
commit cfec27eab8
16 changed files with 224 additions and 89 deletions

View File

@@ -34,16 +34,5 @@ use \Espo\Core\Exceptions\BadRequest;
class Attachment extends \Espo\Core\Controllers\Record
{
public function postActionUpload($params, $data, $request)
{
if (!$this->getAcl()->checkScope('Attachment', 'create')) {
throw new Forbidden();
}
$attachment = $this->getRecordService()->upload($data);
return array(
'attachmentId' => $attachment->id
);
}
}