Commit 1be3956b authored by Robert Lyon's avatar Robert Lyon Committed by Aaron Wells
Browse files

Bug 1460368: stopping anonymous comments on artefacts

When anonymous comments is turned off

Change-Id: Id2ed84cb3b532da6ec8e117ef13c283bd64af302
(cherry picked from commit 3046c5c7)
parent 86335be6
......@@ -147,7 +147,7 @@ EOF;
$javascript = array('paginator', 'viewmenu', 'expandable');
$extrastylesheets = array('style/views.css');
if ($artefact->get('allowcomments')) {
if ($artefact->get('allowcomments') && ($USER->is_logged_in() || get_config('anonymouscomments'))) {
$addfeedbackform = pieform(ArtefactTypeComment::add_comment_form(false, $artefact->get('approvecomments')));
$extrastylesheets[] = 'style/jquery.rating.css';
$javascript[] = 'jquery.rating';
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