mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Allow other checks on canView for blog
This commit is contained in:
parent
7583e0bcd5
commit
8fac11e196
@ -473,6 +473,12 @@ class BlogPost extends Page
|
||||
return false;
|
||||
}
|
||||
|
||||
$extended = $this->extendedCan('canView', $member);
|
||||
|
||||
if ($extended !== null) {
|
||||
return $extended;
|
||||
}
|
||||
|
||||
return !$publishDate->InFuture();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user