From 5ed8e71160c26d3fc2f65b6ead3f92ac3a067280 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Mon, 1 Mar 2010 22:21:48 +0000 Subject: [PATCH] BUGFIX: Fixed edit/view/delete permissions of related links for non-ADMINs (from r89838) (from r96317) --- code/RelatedPageLink.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/RelatedPageLink.php b/code/RelatedPageLink.php index e97a098..cabbd72 100644 --- a/code/RelatedPageLink.php +++ b/code/RelatedPageLink.php @@ -85,6 +85,15 @@ class RelatedPageLink extends DataObject { return '' . Convert::raw2xml($url) . ''; } + 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); + } } ?>