src/Security/Group.php
public function AllChildrenIncludingDeleted()
    {
        $children = parent::AllChildrenIncludingDeleted();

        $filteredChildren = new ArrayList();

        if ($children) {
            foreach ($children as $child) {
                /** @var DataObject $child */
                if ($child->canView()) {
                    $filteredChildren->push($child);
                }
            }
        }

        return $filteredChildren;
    }
public function AllChildrenIncludingDeleted()
    {
        $children = parent::AllChildrenIncludingDeleted();

        $filteredChildren = new ArrayList();

        if ($children) {
            foreach ($children as $child) {
                /** @var DataObject $child */
                if ($child->canView()) {
                    $filteredChildren->push($child);
                }
            }
        }

        return $filteredChildren;
    }
public function AllChildrenIncludingDeleted ( ) { $ children = parent :: AllChildrenIncludingDeleted ( ) ; $ filteredChildren = new ArrayList ( ) ; if ( $ children ) { foreach ( $ children as $ child ) { /** @var DataObject $child */ if ( $ child -> canView ( ) ) { $ filteredChildren -> push ( $ child ) ; } } } return $ filteredChildren ; }
Returns all of the children for the CMS Tree.
Filters to only those groups that the current user can edit

@return ArrayList
Returns all of the children for the CMS Tree . Filters to only those groups that the current user can edit