MINOR changed the method to get a page's siteconfig, it is now subsite aware. (from r89870)

This commit is contained in:
Tom Rix 2010-03-01 21:38:50 +00:00
parent 451bf37da9
commit 9b6f901435

View File

@ -224,6 +224,10 @@ class SiteTreeSubsites extends SiteTreeDecorator {
return $return->Count() > 0 ? $return : false;
}
function alternateSiteConfig() {
return DataObject::get_one('SiteConfig', 'SubsiteID = ' . $this->owner->SubsiteID);
}
/**
* Only allow editing of a page if the member satisfies one of the following conditions:
* - Is in a group which has access to the subsite this page belongs to