mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
a213550372
commit
08a338900a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user