mirror of https://github.com/MISP/MISP
chg: [servers:index] Improved UI
Only show blocked attribute types/objects if setting is turned onpull/8022/head
parent
7d87fef8ea
commit
6479f841a1
|
@ -41,7 +41,10 @@ foreach ($servers as $server):
|
|||
$rules['push'] = json_decode($server['Server']['push_rules'], true);
|
||||
$rules['pull'] = json_decode($server['Server']['pull_rules'], true);
|
||||
$syncOptions = array('pull', 'push');
|
||||
$fieldOptions = array('tags', 'orgs', 'type_attributes', 'type_objects');
|
||||
$fieldOptions = array('tags', 'orgs');
|
||||
if (!empty(Configure::read('MISP.enable_synchronisation_filtering_on_type'))) {
|
||||
$fieldOptions = array_merge($fieldOptions, ['type_attributes', 'type_objects']);
|
||||
}
|
||||
$typeOptions = array('OR' => array('colour' => 'green', 'text' => 'allowed'), 'NOT' => array('colour' => 'red', 'text' => 'blocked'));
|
||||
$ruleDescription = array('pull' => '', 'push' => '');
|
||||
foreach ($syncOptions as $syncOption) {
|
||||
|
|
Loading…
Reference in New Issue