chg: [galaxyClusters] Added warning regarding useability of clusters

pull/6120/head
mokaddem 2020-09-23 09:06:16 +02:00
parent 1497b1d287
commit d6cef3bd07
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 0 deletions

View File

@ -206,6 +206,9 @@ class GalaxyClustersController extends AppController
$this->loadModel('Attribute');
$distributionLevels = $this->Attribute->distributionLevels;
$this->set('distributionLevels', $distributionLevels);
if (!$cluster['GalaxyCluster']['default'] && !$cluster['GalaxyCluster']['published']) {
$this->Flash->warning(__('This cluster is not published. Users will not be able to use it'));
}
}
}