Added "canView" permission to EmailRecipient. Fixes an issue with non-admin rights in SS3

This commit is contained in:
Roman 2012-09-24 19:02:33 +02:00
parent 217836d552
commit 019f782d2e

View File

@ -975,6 +975,10 @@ class UserDefinedForm_EmailRecipient extends DataObject {
return $fields; return $fields;
} }
public function canView($member = null) {
return $this->Form()->canView();
}
public function canEdit($member = null) { public function canEdit($member = null) {
return $this->Form()->canEdit(); return $this->Form()->canEdit();
} }