mirror of https://github.com/MISP/MISP
wip: [enrichment] Removed debug calls
- Before having new modules fully operational, let us at least not keep only 2 debugs within an exposed functionpull/4430/head
parent
7b7ddaabb9
commit
dabb87bf4b
|
@ -5188,8 +5188,17 @@ class EventsController extends AppController
|
|||
|
||||
public function handleModuleResults($eventId)
|
||||
{
|
||||
debug($eventId);
|
||||
debug($this->request->event);
|
||||
if (!$this->userRole['perm_add']) {
|
||||
throw new MethodNotAllowedException(__('Event not found or you don\'t have permissions to create attributes'));
|
||||
}
|
||||
if ($this->request->is('post')) {
|
||||
if (!$this->Event->checkIfAuthorised($this->Auth->user(), $id)) {
|
||||
throw new MethodNotAllowedException(__('Invalid event.'));
|
||||
}
|
||||
$this->redirect(array('controller' => 'events', 'action' => 'view', $id));
|
||||
} else {
|
||||
throw new MethodNotAllowedException('This endpoint requires a POST request.');
|
||||
}
|
||||
}
|
||||
|
||||
public function importModule($module, $eventId)
|
||||
|
|
Loading…
Reference in New Issue