mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
fix(submitted-form): Pass member to parent calls
This commit is contained in:
parent
696fa1d05e
commit
0348e5dd15
@ -132,10 +132,10 @@ class SubmittedForm extends DataObject
|
||||
}
|
||||
|
||||
if ($this->Parent()) {
|
||||
return $this->Parent()->canCreate();
|
||||
return $this->Parent()->canCreate($member);
|
||||
}
|
||||
|
||||
return parent::canCreate();
|
||||
return parent::canCreate($member);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user