Commit 83007f1b by Son Nguyen Committed by Robert Lyon

Bug 1540534: Apply the moderation setting from view to its artefacts

Change-Id: I974df9100f22a5c2bd5e1e78d6b8645d198f42eb behatnotneeded: TODO: need to add a senario for this case (cherry picked from commit 74ee809f)
parent a41bc378
......@@ -151,7 +151,10 @@ EOF;
$javascript = array('paginator', 'viewmenu');
if ($artefact->get('allowcomments') && ( $USER->is_logged_in() || (!$USER->is_logged_in() && get_config('anonymouscomments')))) {
$addfeedbackform = pieform(ArtefactTypeComment::add_comment_form(false, $artefact->get('approvecomments')));
$commenttype = $view->user_comments_allowed($USER);
$moderate = isset($commenttype) && $commenttype === 'private';
$addfeedbackform = pieform(ArtefactTypeComment::add_comment_form(false, $moderate));
}
$objectionform = pieform(objection_form());
if ($notrudeform = notrude_form()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment