mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUG Normal users (non-ADMIN) can't create any email recipients
This commit is contained in:
parent
a126fb1630
commit
3f223b691b
@ -1112,7 +1112,16 @@ class UserDefinedForm_EmailRecipient extends DataObject {
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param Member
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function canCreate($member = null) {
|
||||
return $this->Form()->canCreate();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Member
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user