silverstripe-subsites/code
Mateusz Uzdowski 82159e38d3 Make canEdit fall back to session if the object's SubsiteID not there.
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);"
2014-01-10 09:58:53 +13:00
..
extensions Make canEdit fall back to session if the object's SubsiteID not there. 2014-01-10 09:58:53 +13:00
forms Less intrusive doSave() overwrite of GridFieldDetailForm 2013-07-10 16:15:04 +02:00
model Do not change the session-stored subsite, if session is not enabled. 2013-11-26 13:12:17 +13:00
tasks SubsiteCopyPagesTask 2013-01-03 14:10:14 +01:00
SubsiteAdmin.php BUG Move the SubsiteList PJAX request to a dedicated Controller. 2013-10-16 13:20:54 +13:00
SubsiteReportWrapper.php More globalisation 2013-10-30 13:44:06 +01:00
SubsitesVirtualPage.php More globalisation 2013-10-30 13:44:06 +01:00
SubsiteXHRController.php BUG Refactor the access checks and initial subsite redirections. 2013-12-04 17:34:27 +13:00