Merge branch 'dnadesign-GridFieldFix' into 3.1

Closes #3154
This commit is contained in:
Simon Welsh 2014-08-07 20:55:52 +10:00
commit b9d306b07d

View File

@ -339,7 +339,7 @@ class GridField extends FormField {
if($total > 0) {
$rows = array();
foreach($list as $idx => $record) {
if(!$record->canView()) {
if($record->hasMethod('canView') && !$record->canView()) {
continue;
}
$rowContent = '';