fix: [internal] Remove duplicate check for published event when fetch objects

pull/6326/head
Jakub Onderka 2020-09-20 18:34:38 +02:00
parent 6a017f63fe
commit f52eee457a
1 changed files with 0 additions and 3 deletions

View File

@ -549,9 +549,6 @@ class MispObject extends AppModel
$params['page'] = $options['page'];
}
}
if (Configure::read('MISP.unpublishedprivate') && !$user['Role']['perm_site_admin']) {
$params['conditions']['AND'][] = array('OR' => array('Event.published' => 1, 'Event.orgc_id' => $user['org_id']));
}
$results = $this->find('all', $params);
if ($options['enforceWarninglist']) {
$this->Warninglist = ClassRegistry::init('Warninglist');