mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR notice fix (from r85379)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89192 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d9ec2b327f
commit
08166d902a
@ -1023,6 +1023,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
// parents and then see which ones the user has permission on
|
||||
$canEditSiteConfig = SiteConfig::current_site_config()->canEdit($memberID);
|
||||
foreach($potentiallyInherited as $item) {
|
||||
if (!isset($groupedByParent[$item->ParentID])) $groupedByParent[$item->ParentID] = array();
|
||||
if ($item->ParentID) $groupedByParent[$item->ParentID][] = $item->ID;
|
||||
else $result[$item->ID] = $canEditSiteConfig;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user