Merge pull request #1969 from robert-h-curry/patch-1

Only show direct members of a group in the members field
This commit is contained in:
Sean Harvey 2013-05-22 20:28:17 -07:00
commit ac2216dabc

View File

@ -117,7 +117,7 @@ class Group extends DataObject {
}
}
});
$memberList = GridField::create('Members',false, $this->Members(), $config)->addExtraClass('members_grid');
$memberList = GridField::create('Members',false, $this->DirectMembers(), $config)->addExtraClass('members_grid');
// @todo Implement permission checking on GridField
//$memberList->setPermissions(array('edit', 'delete', 'export', 'add', 'inlineadd'));
$fields->addFieldToTab('Root.Members', $memberList);