mirror of https://github.com/MISP/MISP
fix: Remove delegation request once event delegation is accepted
- TODO, cleanup of zombie delegation requestspull/2339/head
parent
f4041cd100
commit
d7df929500
|
@ -101,6 +101,7 @@ class EventDelegationsController extends AppController {
|
|||
'change' => 'Starting the transfer of event ' . $delegation['Event']['id'] . ' to organisation ' . $this->Auth->user('Organisation')['name'],
|
||||
));
|
||||
$result = $this->EventDelegation->transferEvent($delegation, $this->Auth->user());
|
||||
$this->EventDelegation->delete($delegation['EventDelegation']['id']);
|
||||
if ($result) {
|
||||
$this->Log->create();
|
||||
$this->Log->save(array(
|
||||
|
|
Loading…
Reference in New Issue