fix: [internal] Attaching cluster

pull/7970/head
Jakub Onderka 2021-11-18 16:02:55 +01:00
parent a0796f3df1
commit e7c7faad48
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ class Galaxy extends AppModel
throw new NotFoundException(__('Invalid %s.', $target_type));
}
$target = $target[0];
$local_only = $cluster['Galaxy']['local_only'];
$local_only = $cluster['GalaxyCluster']['Galaxy']['local_only'];
if ($local_only && !$local) {
throw new MethodNotAllowedException(__("This Cluster can only be attached in a local scope"));
}