mirror of https://github.com/MISP/MISP
new: [feed] Added unpublish_event setting to ensure pulled events are in the unpublished state
parent
b54eec95c1
commit
c4c395af31
|
@ -1068,6 +1068,9 @@ class Feed extends AppModel
|
||||||
if (!empty($feed['Feed']['settings']['disable_correlation'])) {
|
if (!empty($feed['Feed']['settings']['disable_correlation'])) {
|
||||||
$event['Event']['disable_correlation'] = (bool) $feed['Feed']['settings']['disable_correlation'];
|
$event['Event']['disable_correlation'] = (bool) $feed['Feed']['settings']['disable_correlation'];
|
||||||
}
|
}
|
||||||
|
if (!empty($feed['Feed']['settings']['unpublish_event'])) {
|
||||||
|
$event['Event']['published'] = (bool) $feed['Feed']['settings']['unpublish_event'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $event;
|
return $event;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,11 @@ echo $this->element('genericElements/Form/genericForm', [
|
||||||
'label' => __('Disable correlation'),
|
'label' => __('Disable correlation'),
|
||||||
'type' => 'checkbox'
|
'type' => 'checkbox'
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'field' => 'Feed.settings.unpublish_event',
|
||||||
|
'label' => __('Unpublish events'),
|
||||||
|
'type' => 'checkbox'
|
||||||
|
],
|
||||||
[
|
[
|
||||||
'field' => 'name',
|
'field' => 'name',
|
||||||
'label' => __('Name'),
|
'label' => __('Name'),
|
||||||
|
|
Loading…
Reference in New Issue