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