mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
fix(submitted-form): canCreate not checking parent
This commit is contained in:
parent
75bec8ceb2
commit
696fa1d05e
@ -130,7 +130,12 @@ class SubmittedForm extends DataObject
|
||||
if ($extended !== null) {
|
||||
return $extended;
|
||||
}
|
||||
return $this->Parent()->canCreate();
|
||||
|
||||
if ($this->Parent()) {
|
||||
return $this->Parent()->canCreate();
|
||||
}
|
||||
|
||||
return parent::canCreate();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user