mirror of https://github.com/MISP/MISP
chg: [sync] unpublish event on pull sync if unpublish_event is set. fix #7197
parent
d989759211
commit
a0dc10b65c
|
@ -360,6 +360,10 @@ class Server extends AppModel
|
|||
}
|
||||
}
|
||||
}
|
||||
// Set published to false if unpublish_event is set for the server
|
||||
if (!empty($server['Server']['unpublish_event'])) {
|
||||
$event['Event']['published'] = 0;
|
||||
}
|
||||
|
||||
// Distribution, set reporter of the event, being the admin that initiated the pull
|
||||
$event['Event']['user_id'] = $user['id'];
|
||||
|
|
Loading…
Reference in New Issue