mirror of https://github.com/MISP/MISP
chg: [eventReport] Includes event data when fetching event report from
non-admin userspull/6412/head
parent
ffedb4cbbb
commit
4f8bdcb144
|
@ -162,7 +162,8 @@ class EventReportsController extends AppController
|
|||
if ($this->_isRest()) {
|
||||
$reports = $this->EventReport->find('all', [
|
||||
'recursive' => -1,
|
||||
'conditions' => $compiledConditions
|
||||
'conditions' => $compiledConditions,
|
||||
'contain' => $this->EventReport->defaultContain,
|
||||
]);
|
||||
return $this->RestResponse->viewData($reports, $this->response->type());
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue