BUGFIX: Correct RelatedPageLink permissions so that they appear properly in ComplexTableFields. (from r88969) (from r96303)

This commit is contained in:
Tom Rix 2010-03-01 22:09:55 +00:00
parent 3cc3b7a63a
commit 2346d2915a

View File

@ -74,6 +74,7 @@ class RelatedPageLink extends DataObject {
$classClause = ($page->SubsiteID == $otherPage->SubsiteID) ? ' class="cmsEditlink"' : '';
return '<a href="admin/show/' . $page->ID . "\"$classClause>" . Convert::raw2xml($page->Title) . '</a>';
}
function AbsoluteLink($master = false) {
$page = $master ? Dataobject::get_by_id("SiteTree", $this->MasterPageID)
: Dataobject::get_by_id("SiteTree", $this->RelatedPageID);
@ -93,6 +94,7 @@ class RelatedPageLink extends DataObject {
function canDelete($member = null) {
return $this->MasterPage()->canDelete($member);
}
}
?>