BUGFIX: Fixed edit/view/delete permissions of related links for non-ADMINs (from r89838) (from r96317)

This commit is contained in:
Tom Rix 2010-03-01 22:21:48 +00:00
parent a2cdac98d4
commit 5ed8e71160

View File

@ -85,6 +85,15 @@ class RelatedPageLink extends DataObject {
return '<a href="' . Convert::raw2att($url) .'" class="externallink">' . Convert::raw2xml($url) . '</a>';
}
function canView($member = null) {
return $this->MasterPage()->canView($member);
}
function canEdit($member = null) {
return $this->MasterPage()->canView($member);
}
function canDelete($member = null) {
return $this->MasterPage()->canDelete($member);
}
}
?>