mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR permission fix (from r85373)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89191 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ae24151fe5
commit
d9ec2b327f
@ -1021,7 +1021,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
if($potentiallyInherited) {
|
||||
// Group $potentiallyInherited by ParentID; we'll look at the permission of all those
|
||||
// parents and then see which ones the user has permission on
|
||||
$canEditSiteConfig = SiteConfig::current_site_config()->canEdit($member);
|
||||
$canEditSiteConfig = SiteConfig::current_site_config()->canEdit($memberID);
|
||||
foreach($potentiallyInherited as $item) {
|
||||
if ($item->ParentID) $groupedByParent[$item->ParentID][] = $item->ID;
|
||||
else $result[$item->ID] = $canEditSiteConfig;
|
||||
|
Loading…
x
Reference in New Issue
Block a user