mirror of https://github.com/MISP/MISP
Push sightings regardsless of distribution level
parent
69ec57dd39
commit
4f1ca7ef1b
|
@ -3997,8 +3997,10 @@ class Event extends AppModel
|
|||
$failedServers = array();
|
||||
App::uses('SyncTool', 'Tools');
|
||||
foreach ($servers as &$server) {
|
||||
if (((!isset($server['Server']['internal']) || !$server['Server']['internal']) && $event['Event']['distribution'] < 2) ||
|
||||
((!isset($server['Server']['push_sightings']) || !$server['Server']['push_sightings'])) && $scope === 'sightings') {
|
||||
if (($scope === 'events' &&
|
||||
(!isset($server['Server']['internal'] || !$server['Server']['internal']) && $event['Event']['distribution'] < 2)) ||
|
||||
($scope === 'sightings' &&
|
||||
(!isset($server['Server']['push_sightings'] || !$server['Server']['push_sightings'])))) {
|
||||
continue;
|
||||
}
|
||||
$syncTool = new SyncTool();
|
||||
|
|
Loading…
Reference in New Issue