mirror of https://github.com/MISP/MISP
chg: [component:CRUD] Added support of afterFind in the delete function
parent
b6769c5f58
commit
d682d92973
|
@ -289,6 +289,9 @@ class CRUDComponent extends Component
|
|||
}
|
||||
}
|
||||
}
|
||||
if (isset($params['afterFind'])) {
|
||||
$data = $params['afterFind']($data);
|
||||
}
|
||||
if (isset($params['beforeDelete'])) {
|
||||
$data = $params['beforeDelete']($data);
|
||||
if (empty($data)) {
|
||||
|
|
Loading…
Reference in New Issue