mirror of https://github.com/MISP/MISP
fix: [internal] Remove redundant condition
parent
3fd029cc62
commit
b081dda00e
|
@ -2171,10 +2171,6 @@ class Attribute extends AppModel
|
|||
if (isset($options['group'])) {
|
||||
$params['group'] = !empty($options['group']) ? $options['group'] : false;
|
||||
}
|
||||
// Site admin can access even unpublished event attributes if `unpublishedprivate` option is enabled
|
||||
if (!$user['Role']['perm_site_admin'] && Configure::read('MISP.unpublishedprivate')) {
|
||||
$params['conditions']['AND'][] = array('OR' => array('Event.published' => 1, 'Event.orgc_id' => $user['org_id'], 'Event.org_id' => $user['org_id']));
|
||||
}
|
||||
if (!empty($options['list'])) {
|
||||
if (!empty($options['event_ids'])) {
|
||||
return $this->find('column', [
|
||||
|
|
Loading…
Reference in New Issue