Add canEdit extension

This commit is contained in:
Sam Walsh 2016-05-31 15:00:51 +12:00
parent c1ae82b74b
commit 8c9c6f5ac4

View File

@ -518,6 +518,12 @@ class BlogPost extends Page
{ {
$member = $this->getMember($member); $member = $this->getMember($member);
$extended = $this->extendedCan('canEdit', $member);
if ($extended !== null) {
return $extended;
}
if (parent::canEdit($member)) { if (parent::canEdit($member)) {
return true; return true;
} }