mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Respecting model permissions in AssetAdmin
This commit is contained in:
parent
c2d31e55dd
commit
9403dd6e38
@ -156,7 +156,8 @@ JS
|
||||
GridFieldLevelup::create($folder->ID)->setLinkSpec('admin/assets/show/%d')
|
||||
);
|
||||
|
||||
$gridField = new GridField('File', $title, $this->getList(), $gridFieldConfig);
|
||||
$gridField = GridField::create('File', $title, $this->getList(), $gridFieldConfig)
|
||||
->setCheckModelPermissions(true);
|
||||
$columns = $gridField->getConfig()->getComponentByType('GridFieldDataColumns');
|
||||
$columns->setDisplayFields(array(
|
||||
'StripThumbnail' => '',
|
||||
|
Loading…
Reference in New Issue
Block a user