mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #58 from bummzack/master
FIX: non admin user rights viewing EmailRecipients.
This commit is contained in:
commit
6d8d648280
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user