Allow other checks on canView for blog

This commit is contained in:
Matthew Hailwood 2017-04-06 17:18:57 +12:00 committed by GitHub
parent 7583e0bcd5
commit 8fac11e196

View File

@ -473,6 +473,12 @@ class BlogPost extends Page
return false; return false;
} }
$extended = $this->extendedCan('canView', $member);
if ($extended !== null) {
return $extended;
}
return !$publishDate->InFuture(); return !$publishDate->InFuture();
} }