mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUG SubmittedForm can't be created by non-ADMIN
This commit is contained in:
parent
3f223b691b
commit
e5f8d13b15
@ -70,6 +70,15 @@ class SubmittedForm extends DataObject {
|
|||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Member
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
public function canCreate($member = null) {
|
||||||
|
return $this->Parent()->canCreate();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Member
|
* @param Member
|
||||||
*
|
*
|
||||||
|
@ -22,6 +22,15 @@ class SubmittedFormField extends DataObject {
|
|||||||
'FormattedValue' => 'Value'
|
'FormattedValue' => 'Value'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Member
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
public function canCreate($member = null) {
|
||||||
|
return $this->Parent()->canCreate();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Member
|
* @param Member
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user