mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Added "canView" permission to EmailRecipient. Fixes an issue with non-admin rights in SS3
This commit is contained in:
parent
217836d552
commit
019f782d2e
@ -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