mirror of https://github.com/MISP/MISP
fix: Fixed an issue where discarding a delegation request tried to redirect to the event view
- however, users lose access to the event once they discard the delegation request - redirects to the index instead nowpull/2089/head
parent
50c94e338b
commit
ac6c74575e
|
@ -135,7 +135,7 @@ class EventDelegationsController extends AppController {
|
|||
if ($this->request->is('post')) {
|
||||
$this->EventDelegation->delete($delegation['EventDelegation']['id']);
|
||||
$this->Session->setFlash('Delegation request deleted.');
|
||||
$this->redirect(array('controller' => 'events', 'action' => 'view', $delegation['EventDelegation']['event_id']));
|
||||
$this->redirect(array('controller' => 'events', 'action' => 'index'));
|
||||
} else {
|
||||
$this->set('delegationRequest', $delegation);
|
||||
$this->render('ajax/delete_delegation');
|
||||
|
|
Loading…
Reference in New Issue