mirror of https://github.com/MISP/MISP
fix: [Sightings] Plugin.Sightings_policy=Event Owner now shows sightings
that belong to the creating orgpull/5032/head
parent
37f474280d
commit
b51871fe52
|
@ -517,7 +517,10 @@ class Sighting extends AppModel
|
|||
));
|
||||
$eventOwnerOrgIdList[$temp_event['Event']['id']] = $temp_event['Event']['orgc_id'];
|
||||
}
|
||||
if (empty($eventOwnerOrgIdList[$sighting['Sighting']['event_id']]) || $eventOwnerOrgIdList[$sighting['Sighting']['event_id']] !== $user['org_id']) {
|
||||
if (
|
||||
empty($eventOwnerOrgIdList[$sighting['Sighting']['event_id']]) ||
|
||||
($eventOwnerOrgIdList[$sighting['Sighting']['event_id']] !== $user['org_id'] && $sighting['Sighting']['org_id'] !== $user['org_id'])
|
||||
) {
|
||||
unset($sightings[$k]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue