chg: [galaxyCluster] Allow all clusters to be forked as long as user can

edit galaxies
pull/6120/head
mokaddem 2020-09-23 16:32:35 +02:00
parent f71891fec6
commit 54e2714bd5
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 5 deletions

View File

@ -243,11 +243,7 @@
'icon' => 'code-branch',
'complex_requirement' => array(
'function' => function($row, $options) {
return !$options['datapath']['default'] &&
(
$options['me']['Role']['perm_site_admin'] ||
($options['me']['org_id'] == $options['datapath']['org'] && $options['me']['Role']['perm_galaxy_editor'])
);
return $options['me']['Role']['perm_galaxy_editor'];
},
'options' => array(
'me' => $me,