mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Removed redundant allowedParents information from siteTreeHints, already contained in allowedChildren
This commit is contained in:
parent
446b8bae63
commit
470a2841a3
@ -243,10 +243,6 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
$def[$class]['defaultChild'] = $obj->defaultChild();
|
||||
$def[$class]['defaultParent'] = isset(SiteTree::get_by_link($obj->defaultParent())->ID) ? SiteTree::get_by_link($obj->defaultParent())->ID : null;
|
||||
|
||||
if(is_array($allowedChildren)) foreach($allowedChildren as $allowedChild) {
|
||||
$def[$allowedChild]['allowedParents'][] = $class;
|
||||
}
|
||||
|
||||
if($obj->stat('can_be_root')) {
|
||||
$def['Root']['allowedChildren'][] = $class;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user