mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
MINOR changed the method to get a page's siteconfig, it is now subsite aware. (from r89870)
This commit is contained in:
parent
451bf37da9
commit
9b6f901435
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user