fix: [ACLComponent] Put `pushClusters` into the correct section.

Also removed useless condition
pull/6120/head
mokaddem 2020-06-16 09:18:04 +02:00
parent 49ca882207
commit f0f5f02ef1
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 2 additions and 2 deletions

View File

@ -233,6 +233,7 @@ class ACLComponent extends Component
'forkTree' => array('*'),
'index' => array('*'),
'import' => array('perm_galaxy_editor'),
'pushCluster' => array('perm_sync'),
'relationsGraph' => array('*'),
'selectGalaxy' => array('perm_tagger'),
'selectGalaxyNamespace' => array('perm_tagger'),
@ -249,7 +250,6 @@ class ACLComponent extends Component
'detach' => array('perm_tagger'),
'edit' => array('perm_galaxy_editor'),
'index' => array('*'),
'pushCluster' => array('perm_sync'),
'restSearch' => array('*'),
'updateCluster' => array('perm_galaxy_editor'),
'view' => array('*'),

View File

@ -3056,7 +3056,7 @@ class Server extends AppModel
if ('Success' === $result) {
$successes[] = $event['Event']['id'];
if ($push['canPush'] || $push['canEditGalaxyCluster']) {
if ($push['canEditGalaxyCluster']) {
$clustersSuccesses = $this->syncGalaxyClusters($HttpSocket, $this->data, $user, $event);
} else {
$clustersSuccesses = array();