Fix - hide the reviewer ID from the CMS user

This commit is contained in:
Torleif West 2018-08-14 10:48:56 +12:00
parent 01c77790f7
commit ea66b0bc7e
1 changed files with 12 additions and 0 deletions

View File

@ -40,4 +40,16 @@ class ContentReviewLog extends DataObject
{
return (bool) Member::currentUser();
}
/**
* allow the user to edit the fields
* @return \FieldList
*/
public function getCMSFields() {
$fields = FieldList::create();
$fields->push(TextareaField::create('Note'));
$fields->push(HiddenField::create('ReviewerID', 'ReviewerID', Member::currentUserID()));
return $fields;
}
}