From 3dca0c1c3720ee13126cfe0c6cace403310d3a63 Mon Sep 17 00:00:00 2001 From: zero Date: Tue, 19 Jun 2007 06:54:39 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@1660 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/document/document.item.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/document/document.item.php b/modules/document/document.item.php index c494be4ec..eef1212cd 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -150,11 +150,13 @@ } function getCommentCount() { + if(!$this->isGranted() && $this->isSecret()) return 0; return $this->get('comment_count'); } function getComments() { if(!$this->allowComment() || !$this->get('comment_count')) return; + if(!$this->isGranted() && $this->isSecret()) return; $oCommentModel = &getModel('comment'); return $oCommentModel->getCommentList($this->document_srl, $is_admin);