mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge pull request #325 from jsirish/refactor/canEditExtend
Subsite - allow canEdit to be extended
This commit is contained in:
commit
0ebf9509bf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user