Commit a5fd0d20 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1753359: Artefacts - Force public comments to be moderated"

parents b86b8a04 ceaa34cb
......@@ -152,7 +152,7 @@ $javascript = array('paginator', 'viewmenu');
if ($artefact->get('allowcomments') && ( $USER->is_logged_in() || (!$USER->is_logged_in() && get_config('anonymouscomments')))) {
$commenttype = $view->user_comments_allowed($USER);
$moderate = isset($commenttype) && $commenttype === 'private';
$moderate = !$USER->is_logged_in() || (isset($commenttype) && $commenttype === 'private');
$addfeedbackform = pieform(ArtefactTypeComment::add_comment_form(false, $moderate));
}
......
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