mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Fix - hide the reviewer ID from the CMS user
This commit is contained in:
parent
01c77790f7
commit
ea66b0bc7e
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user