id)) { throw new BadRequest(); } $id = $data->id; if (!$this->getAcl()->checkScope('Attachment', 'create')) { throw new Forbidden(); } return $this->getRecordService()->getAttachmentList($id)->getValueMapList(); } }