mirror of https://github.com/MISP/MISP
fix: [analyst-data:CRUD] Make sure to return the data in the afterFind function
parent
2c2c297b32
commit
dc6b6cc3b3
|
@ -76,6 +76,7 @@ class AnalystDataController extends AppController
|
|||
if (!$canEdit) {
|
||||
throw new MethodNotAllowedException(__('You are not authorised to do that.'));
|
||||
}
|
||||
return $analystData;
|
||||
}
|
||||
];
|
||||
$this->CRUD->edit($id, $params);
|
||||
|
@ -99,6 +100,7 @@ class AnalystDataController extends AppController
|
|||
if (!$canEdit) {
|
||||
throw new MethodNotAllowedException(__('You are not authorised to do that.'));
|
||||
}
|
||||
return $analystData;
|
||||
},
|
||||
'afterDelete' => function($deletedAnalystData) use ($hard) {
|
||||
if (empty($hard)) {
|
||||
|
|
Loading…
Reference in New Issue