BUGFIX: Group::AllChildrenIncludingDeleted() should filter on canEdit() rather than a can() call

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70698 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2009-01-23 06:04:14 +00:00 committed by Sam Minnee
parent a213550372
commit 08a338900a

View File

@ -296,7 +296,7 @@ class Group extends DataObject {
$filteredChildren = new DataObjectSet();
if($children) foreach($children as $child) {
if($child->can()) $filteredChildren->push($child);
if($child->canEdit()) $filteredChildren->push($child);
}
return $filteredChildren;