Fix canEdit permissions.

If permissions earlier in the inheritance chain fail, we should not allow users to edit posts.
If permissions earlier in the inheritance chain succeed, we should still go through the checks in this method.
This commit is contained in:
Guy Sartorelli 2020-04-17 10:14:59 +12:00
parent 3472295f62
commit 339053e73e
1 changed files with 2 additions and 2 deletions

View File

@ -564,8 +564,8 @@ class BlogPost extends Page
{
$member = $this->getMember($member);
if (parent::canEdit($member)) {
return true;
if (!parent::canEdit($member)) {
return false;
}
$parent = $this->Parent();