distribution

do not push Community nor No push conform private.
pull/63/head
noud 2012-11-02 13:37:33 +01:00
parent ed1d5bf063
commit d17d5b6b8a
1 changed files with 2 additions and 2 deletions

View File

@ -407,8 +407,8 @@ class Event extends AppModel {
//unset($event['Event']['org']);
// remove value1 and value2 from the output
foreach ($event['Event']['Attribute'] as $key => &$attribute) {
// do not keep attributes that are private
if ($attribute['private']) {
// do not keep attributes that are private, nor cluster, nor pull
if ($attribute['private'] || $attribute['cluster'] || $attribute['pull']) {
unset($event['Event']['Attribute'][$key]);
continue; // stop processing this
}