Merge pull request #325 from jsirish/refactor/canEditExtend

Subsite - allow canEdit to be extended
This commit is contained in:
Damian Mooyman 2017-11-23 15:38:05 +13:00 committed by GitHub
commit 0ebf9509bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -637,6 +637,11 @@ class Subsite extends DataObject
*/
public function canEdit($member = false)
{
$extended = $this->extendedCan(__FUNCTION__, $member);
if ($extended !== null) {
return $extended;
}
return true;
}