mirror of https://github.com/MISP/MISP
A previous change reverted by accident in the previous commit
parent
b7d95ed743
commit
20efca4d79
|
@ -512,9 +512,11 @@ class AttributesController extends AppController {
|
|||
$attribute['value'] = $entry['Value'];
|
||||
$attribute['to_ids'] = ($entry['Confidence'] > 51) ? 1 : 0; // To IDS if high confidence
|
||||
$attribute['distribution'] = 3; // 'All communities'
|
||||
if (Configure::read('MISP.default_attribute_distribution') != null) {
|
||||
if (Configure::read('MISP.default_attribute_distribution') === 'event') {
|
||||
$attribute['distribution'] = $this->Event->data['Event']['distribution'];
|
||||
} else {
|
||||
$attribute['distribution'] = Configure::read('MISP.default_attribute_distribution');
|
||||
}
|
||||
}
|
||||
switch($entry['Type']) {
|
||||
case 'Address':
|
||||
$attribute['category'] = 'Network activity';
|
||||
|
|
Loading…
Reference in New Issue