mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-09-28 20:29:23 +02:00
82159e38d3
This problem manifests when a GridField-managed relationship tries to create an object that references the container from canEdit - the container in this case has empty fields. An example of that is a HomePage with CarouselItem - if the CarouselItem::canEdit tries to call $this->Page()->canEdit(), the "Page" will be a dummy object, not the actual instance of the HomePage that's doing the manipulation. This is similar to the behaviour of SiteTree::canEdit, which solves this situation by falling back to "return $this->getSiteConfig()->canEdit($member);" |
||
---|---|---|
.. | ||
CMSPageAddControllerExtension.php | ||
ControllerSubsites.php | ||
ErrorPageSubsite.php | ||
FileSubsites.php | ||
GroupSubsites.php | ||
LeftAndMainSubsites.php | ||
SiteConfigSubsites.php | ||
SiteTreeSubsites.php | ||
SubsiteMenuExtension.php |