mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
commit
b9d306b07d
@ -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 = '';
|
||||
|
Loading…
Reference in New Issue
Block a user