fix(submitted-form): canCreate not checking parent

This commit is contained in:
Marco (Valandur) 2019-09-05 12:12:26 +02:00
parent 75bec8ceb2
commit 696fa1d05e

View File

@ -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();
}
/**