mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #259 from chillu/pulls/perms-opt-in
FIX: Respect model permissions in AssetAdmin
This commit is contained in:
commit
ae494b01bc
@ -158,7 +158,8 @@ JS
|
|||||||
GridFieldLevelup::create($folder->ID)->setLinkSpec('admin/assets/show/%d')
|
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 = $gridField->getConfig()->getComponentByType('GridFieldDataColumns');
|
||||||
$columns->setDisplayFields(array(
|
$columns->setDisplayFields(array(
|
||||||
'StripThumbnail' => '',
|
'StripThumbnail' => '',
|
||||||
|
Loading…
Reference in New Issue
Block a user