diff --git a/app/Controller/GalaxyClustersController.php b/app/Controller/GalaxyClustersController.php index bc18807e0..20846b5b8 100644 --- a/app/Controller/GalaxyClustersController.php +++ b/app/Controller/GalaxyClustersController.php @@ -59,6 +59,8 @@ class GalaxyClustersController extends AppController $contextConditions['GalaxyCluster.default'] = true; } elseif ($filters['context'] == 'custom') { $contextConditions['GalaxyCluster.default'] = false; + } elseif ($filters['context'] == 'orgc') { + $contextConditions['GalaxyCluster.orgc_id'] = $this->Auth->user('org_id'); } elseif ($filters['context'] == 'org') { $contextConditions['GalaxyCluster.org_id'] = $this->Auth->user('org_id'); } elseif ($filters['context'] == 'deleted') { diff --git a/app/View/GalaxyClusters/ajax/index.ctp b/app/View/GalaxyClusters/ajax/index.ctp index 3806dae09..99dc76fe3 100644 --- a/app/View/GalaxyClusters/ajax/index.ctp +++ b/app/View/GalaxyClusters/ajax/index.ctp @@ -34,7 +34,7 @@ ), array( 'active' => $context === 'org', - 'url' => sprintf('%s/galaxies/view/%s/context:org', $baseurl, $galaxy_id), + 'url' => sprintf('%s/galaxies/view/%s/context:orgc', $baseurl, $galaxy_id), 'text' => __('My Clusters'), ), array(