From 2d9042dc34dd7a597388acad78ec8f2a24e5e7c8 Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 14 Feb 2008 07:36:33 +0000 Subject: [PATCH] =?UTF-8?q?#249=20=EB=B9=84=EB=B0=80=EA=B8=80=20=EC=9E=91?= =?UTF-8?q?=EC=84=B1=EC=9E=90=EB=8A=94=20=ED=95=B4=EB=8B=B9=20=EA=B8=80?= =?UTF-8?q?=EC=9D=98=20=EB=AA=A8=EB=93=A0=20=EA=B6=8C=ED=95=9C=EC=9D=84=20?= =?UTF-8?q?=EA=B0=80=EC=A7=80=EA=B2=8C=20=ED=95=98=EC=97=AC=20=EB=8C=93?= =?UTF-8?q?=EA=B8=80=EC=9D=B4=20=EB=8B=AC=EB=A6=AC=EB=A9=B4=20=ED=99=95?= =?UTF-8?q?=EC=9D=B8=20=EA=B0=80=EB=8A=A5=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=ED=95=98=EA=B3=A0=20=EB=B9=84=EB=B0=80=EA=B8=80=EC=9D=98=20?= =?UTF-8?q?=EB=8C=93=EA=B8=80=EC=9D=80=20=EB=8C=93=EA=B8=80=20=EC=88=AB?= =?UTF-8?q?=EC=9E=90=EB=A7=8C=20=EB=85=B8=EC=B6=9C=EB=90=98=EA=B3=A0=20?= =?UTF-8?q?=EB=82=B4=EC=9A=A9=EC=9D=80=20=EB=85=B8=EC=B6=9C=EB=90=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3663 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/board/skins/cozy_board/view_document.html | 2 +- modules/board/skins/xe_board/view_document.html | 2 +- modules/document/document.item.php | 13 +++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/modules/board/skins/cozy_board/view_document.html b/modules/board/skins/cozy_board/view_document.html index b045733e2..e05401822 100644 --- a/modules/board/skins/cozy_board/view_document.html +++ b/modules/board/skins/cozy_board/view_document.html @@ -156,7 +156,7 @@ - +
diff --git a/modules/board/skins/xe_board/view_document.html b/modules/board/skins/xe_board/view_document.html index ecf99441c..9ca66ceb8 100644 --- a/modules/board/skins/xe_board/view_document.html +++ b/modules/board/skins/xe_board/view_document.html @@ -169,7 +169,7 @@ - +
diff --git a/modules/document/document.item.php b/modules/document/document.item.php index c4b205344..2bb5eabe9 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -575,10 +575,23 @@ return $oEditorModel->getModuleEditor('document', $module_srl, $this->document_srl, 'document_srl', 'content'); } + /** + * @brief 댓글을 달 수 있는지에 대한 권한 체크 + * 게시글의 댓글 권한과 또 다른 부분 + **/ + function isEnableComment() { + // 권한이 없고 비밀글 or 댓글금지 or 댓글허용금지이면 return false + if(!$this->isGranted() && ( $this->isSecret() || $this->isLocked() || !$this->allowComment() ) ) return false; + + return true; + } + /** * @brief 댓글 에디터 html을 구해서 return **/ function getCommentEditor() { + if(!$this->isEnableComment()) return; + $oEditorModel = &getModel('editor'); return $oEditorModel->getModuleEditor('comment', $this->get('module_srl'), $comment_srl, 'comment_srl', 'content'); }