Commit 4dca7ac5 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon

Bug 1753359: Artefacts - Force public comments to be moderated

behatnotneeded

Change-Id: If0758686d6bbfbabfb847b88a829f0c659a38360
(cherry picked from commit ceaa34cb)
parent 2a65c6d7
......@@ -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