mirror of https://github.com/MISP/MISP
fix: [galaxyCluster] Integrated changes of improved index factory
parent
b1d96297f3
commit
a2b3504c42
|
@ -56,7 +56,7 @@ class GalaxyClustersController extends AppController
|
|||
$contextConditions['GalaxyCluster.deleted'] = true;
|
||||
}
|
||||
|
||||
$this->set('passedArgsArray', array('context' => $filters['context'], 'searchall' => isset($filters['searchall']) ? $filters['searchall'] : ''));
|
||||
$this->set('passedArgs', json_encode(array('context' => $filters['context'], 'searchall' => isset($filters['searchall']) ? $filters['searchall'] : '')));
|
||||
$this->set('context', $filters['context']);
|
||||
$searchConditions = array();
|
||||
if (empty($filters['searchall'])) {
|
||||
|
@ -984,6 +984,7 @@ class GalaxyClustersController extends AppController
|
|||
),
|
||||
'contain' => array('SharingGroup', 'TargetCluster', 'GalaxyClusterRelationTag' => array('Tag'))
|
||||
));
|
||||
$this->set('passedArgs', json_encode([]));
|
||||
$this->set('relations', $relations);
|
||||
$this->set('tree', $tree);
|
||||
$this->loadModel('Attribute');
|
||||
|
|
|
@ -39,6 +39,7 @@ class GalaxyElementsController extends AppController
|
|||
$this->set('elements', $elements);
|
||||
$this->set('clusterId', $clusterId);
|
||||
$this->set('context', $filters['context']);
|
||||
$this->set('passedArgs', json_encode(array('context' => $filters['context'], 'searchall' => isset($filters['searchall']) ? $filters['searchall'] : '')));
|
||||
$cluster = $this->GalaxyElement->GalaxyCluster->fetchIfAuthorized($this->Auth->user(), $clusterId, array('edit', 'delete'), false, false);
|
||||
$canModify = !empty($cluster['authorized']);
|
||||
$canModify = true;
|
||||
|
|
|
@ -48,7 +48,6 @@
|
|||
'element' => 'distribution_levels',
|
||||
),
|
||||
),
|
||||
'title' => __('Galaxy Cluster Relationships'),
|
||||
'actions' => array(
|
||||
array(
|
||||
'title' => 'Edit',
|
||||
|
|
Loading…
Reference in New Issue