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:
parent
3472295f62
commit
339053e73e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue