diff --git a/modules/document/document.item.php b/modules/document/document.item.php index e997255e7..42c9d5703 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -370,6 +370,7 @@ function getComments() { if(!$this->allowComment() || !$this->getCommentCount()) return; + if(!$this->isGranted() && $this->isSecret()) return; $oCommentModel = &getModel('comment'); $output = $oCommentModel->getCommentList($this->document_srl, $is_admin);