Respecting model permissions in AssetAdmin

This commit is contained in:
Ingo Schommer 2012-12-16 23:32:09 +01:00
parent c2d31e55dd
commit 9403dd6e38
1 changed files with 2 additions and 1 deletions

View File

@ -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' => '',