mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fix for permissions check on 3.5 branch
This commit is contained in:
parent
053660e795
commit
f9d0d5d7a6
@ -562,15 +562,15 @@ class BlogPost extends Page
|
||||
{
|
||||
$member = $this->getMember($member);
|
||||
|
||||
if (Permission::checkMember($member, 'ADMIN')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$extended = $this->extendedCan('canPublish', $member);
|
||||
|
||||
if ($extended !== null) {
|
||||
return $extended;
|
||||
}
|
||||
|
||||
if (Permission::checkMember($member, 'ADMIN')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$parent = $this->Parent();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user