mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +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);" |
||
---|---|---|
.. | ||
extensions | ||
forms | ||
model | ||
tasks | ||
SubsiteAdmin.php | ||
SubsiteReportWrapper.php | ||
SubsitesVirtualPage.php | ||
SubsiteXHRController.php |