Fix #919 make child comment secret if parent comment is secret

This commit is contained in:
Kijin Sung 2017-09-28 17:29:47 +09:00
parent 7b1f0b4ee2
commit 69b868c77f

View file

@ -443,6 +443,10 @@ class boardController extends board
{
return new Object(-1, 'msg_invalid_request');
}
if($parent_comment->isSecret() && $this->module_info->secret === 'Y')
{
$obj->is_secret = 'Y';
}
$output = $oCommentController->insertComment($obj, $manual, $update_document);
}
// Parent does not exist.