chg: [galaxyClusters:index] Do not propose edit for default clusters

pull/6120/head
mokaddem 2020-07-15 14:04:16 +02:00
parent 2044541f41
commit 64c8ccfeec
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 2 deletions

View File

@ -242,12 +242,13 @@
'icon' => 'edit',
'complex_requirement' => array(
'function' => function($row, $options) {
return $options['me']['Role']['perm_site_admin'] || ($options['me']['org_id'] == $options['datapath']['org']);
return !$options['datapath']['default'] && ($options['me']['Role']['perm_site_admin'] || ($options['me']['org_id'] == $options['datapath']['org']));
},
'options' => array(
'me' => $me,
'datapath' => array(
'org' => 'GalaxyCluster.org_id'
'org' => 'GalaxyCluster.org_id',
'default' => 'GalaxyCluster.default'
)
)
),