From 3f223b691b9b8735b6f8223ed91448f370e5e335 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 13 May 2013 14:31:25 +1200 Subject: [PATCH] BUG Normal users (non-ADMIN) can't create any email recipients --- code/model/UserDefinedForm.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/code/model/UserDefinedForm.php b/code/model/UserDefinedForm.php index d3534e5..2830655 100755 --- a/code/model/UserDefinedForm.php +++ b/code/model/UserDefinedForm.php @@ -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 *