mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 23:59:57 +09:00
#249 비밀글 작성자는 해당 글의 모든 권한을 가지게 하여 댓글이 달리면 확인 가능하도록 하고 비밀글의 댓글은 댓글 숫자만 노출되고 내용은 노출되지 않도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3663 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3d64843654
commit
2d9042dc34
3 changed files with 15 additions and 2 deletions
|
|
@ -156,7 +156,7 @@
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
|
|
||||||
<!-- 댓글 입력 폼 -->
|
<!-- 댓글 입력 폼 -->
|
||||||
<!--@if($grant->write_comment && !$oDocument->isLocked())-->
|
<!--@if($grant->write_comment && $oDocument->isEnableComment())-->
|
||||||
<!--%import("filter/insert_comment.xml")-->
|
<!--%import("filter/insert_comment.xml")-->
|
||||||
<div class="boardWrite">
|
<div class="boardWrite">
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@
|
||||||
<!--#include("./comment.html")-->
|
<!--#include("./comment.html")-->
|
||||||
|
|
||||||
<!-- 댓글 입력 폼 -->
|
<!-- 댓글 입력 폼 -->
|
||||||
<!--@if($grant->write_comment && !$oDocument->isLocked() && $oDocument->allowComment() )-->
|
<!--@if($grant->write_comment && $oDocument->isEnableComment() )-->
|
||||||
<!--%import("filter/insert_comment.xml")-->
|
<!--%import("filter/insert_comment.xml")-->
|
||||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" class="boardEditor" >
|
<form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" class="boardEditor" >
|
||||||
<input type="hidden" name="mid" value="{$mid}" />
|
<input type="hidden" name="mid" value="{$mid}" />
|
||||||
|
|
|
||||||
|
|
@ -575,10 +575,23 @@
|
||||||
return $oEditorModel->getModuleEditor('document', $module_srl, $this->document_srl, 'document_srl', 'content');
|
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
|
* @brief 댓글 에디터 html을 구해서 return
|
||||||
**/
|
**/
|
||||||
function getCommentEditor() {
|
function getCommentEditor() {
|
||||||
|
if(!$this->isEnableComment()) return;
|
||||||
|
|
||||||
$oEditorModel = &getModel('editor');
|
$oEditorModel = &getModel('editor');
|
||||||
return $oEditorModel->getModuleEditor('comment', $this->get('module_srl'), $comment_srl, 'comment_srl', 'content');
|
return $oEditorModel->getModuleEditor('comment', $this->get('module_srl'), $comment_srl, 'comment_srl', 'content');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue