mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX: Correct RelatedPageLink permissions so that they appear properly in ComplexTableFields. (from r88969) (from r96303)
This commit is contained in:
parent
3cc3b7a63a
commit
2346d2915a
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user