silverstripe-subsites/code/extensions
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
..
CMSPageAddControllerExtension.php BUG Fixing "Add new" not adding the page to the correct subsite 2013-05-28 12:17:16 +12:00
ControllerSubsites.php BUG: Modifying the module to work with SS 3.0 2012-07-16 11:18:38 +12:00
ErrorPageSubsite.php Extension and config fixes for 3.1 2013-04-04 15:10:22 +13:00
FileSubsites.php More globalisation 2013-10-30 13:44:06 +01:00
GroupSubsites.php More globalisation 2013-10-30 13:44:06 +01:00
LeftAndMainSubsites.php BUG Refactor the access checks and initial subsite redirections. 2013-12-04 17:34:27 +13:00
SiteConfigSubsites.php BUG: Subsite save SiteConfig overwrites MainSite SiteConfig (Issue #15) 2013-05-24 16:26:57 +12:00
SiteTreeSubsites.php Make canEdit fall back to session if the object's SubsiteID not there. 2014-01-10 09:58:53 +13:00
SubsiteMenuExtension.php API: Subsite support for menu of cms (hide admins that don't declare support) (fixes #101 and #89 ) 2013-08-22 13:02:46 +12:00