mirror of https://github.com/MISP/MISP
fix: [modules] only run the workflow if it's enabled, fixes #8531
- blocked event report fetches from URLpull/8537/head
parent
0f15344cff
commit
cbfb2b74ee
|
@ -213,7 +213,10 @@ class Module extends AppModel
|
|||
'action' => 'execute_workflow',
|
||||
'id' => 0,
|
||||
];
|
||||
if (empty($triggerData) && $this->Workflow->isTriggerCallable($trigger_id) && !empty($postData['attribute_uuid'])) {
|
||||
if (!$this->Workflow->isTriggerCallable($trigger_id)) {
|
||||
return true;
|
||||
}
|
||||
if (empty($triggerData) && !empty($postData['attribute_uuid'])) {
|
||||
$this->User = ClassRegistry::init('User');
|
||||
$this->Attribute = ClassRegistry::init('Attribute');
|
||||
$user = $this->User->getAuthUser(Configure::read('CurrentUserId'), true);
|
||||
|
|
Loading…
Reference in New Issue