mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
ENHANCEMENT Removed recently added DataObject::$result_permissions and replaced with more specific TableListField::permissions_for_object()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60724 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5155acd2b6
commit
f464ce20a6
@ -490,7 +490,8 @@ class ModelAdmin_CollectionController extends Controller {
|
||||
$tf->setCustomQuery($this->getSearchQuery($searchCriteria));
|
||||
$tf->setPageSize($this->parentController->stat('page_length'));
|
||||
$tf->setShowPagination(true);
|
||||
$tf->setPermissions(array_merge(array('view','export'), $model->stat('results_permissions')));
|
||||
// @todo Remove records that can't be viewed by the current user
|
||||
$tf->setPermissions(array_merge(array('view','export'), TableListField::permissions_for_object($this->modelClass)));
|
||||
$url = '<a href=\"' . $this->Link() . '/$ID/edit\">$value</a>';
|
||||
$tf->setFieldFormatting(array_combine(array_keys($summaryFields), array_fill(0,count($summaryFields), $url)));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user