mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
Subsite - allow canEdit to be extended
This commit is contained in:
parent
7bf430ba83
commit
8fcfe55ba8
@ -637,6 +637,11 @@ class Subsite extends DataObject
|
|||||||
*/
|
*/
|
||||||
public function canEdit($member = false)
|
public function canEdit($member = false)
|
||||||
{
|
{
|
||||||
|
$extended = $this->extendedCan(__FUNCTION__, $member);
|
||||||
|
if ($extended !== null) {
|
||||||
|
return $extended;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user