mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX: Fixed edit/view/delete permissions of related links for non-ADMINs (from r89838) (from r96317)
This commit is contained in:
parent
a2cdac98d4
commit
5ed8e71160
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user