chg: [eventReport] Includes event data when fetching event report from

non-admin users
pull/6412/head
mokaddem 2020-09-22 09:31:03 +02:00
parent ffedb4cbbb
commit 4f8bdcb144
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 1 deletions

View File

@ -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 {