Commit b8a5a9f0 authored by Johan Cwiklinski's avatar Johan Cwiklinski

Check comment ACL on the right object; fixes #3901

parent c396ca82
......@@ -110,7 +110,9 @@ class KnowbaseItem_Comment extends CommonDBTM {
$where
);
$cancomment = $item->canComment();
$entry = new KnowbaseItem();
$entry->getFromDB($kbitem->fields['knowbaseitems_id']);
$cancomment = $entry->canComment();
if ($cancomment) {
echo "<div class='firstbloc'>";
......
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