Merge pull request #259 from chillu/pulls/perms-opt-in

FIX: Respect model permissions in AssetAdmin
This commit is contained in:
Will Rossiter 2013-05-24 15:44:55 -07:00
commit ae494b01bc

View File

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