diff --git a/config/config.inc.php b/config/config.inc.php
index b3e18ff9e..b245bef4b 100644
--- a/config/config.inc.php
+++ b/config/config.inc.php
@@ -18,7 +18,7 @@
/**
* @brief debug mode = true 일때 files/_debug_message.php 에 디버그 내용이 쌓임
**/
- define('__DEBUG__', true);
+ define('__DEBUG__', false);
if(__DEBUG__) {
// php5이상이면 error handling을 handleError() 로 set
diff --git a/modules/board/board.controller.php b/modules/board/board.controller.php
index 972bddc54..349fd2dfd 100644
--- a/modules/board/board.controller.php
+++ b/modules/board/board.controller.php
@@ -93,7 +93,7 @@
$oDocumentController = &getController('document');
// 삭제 시도
- $output = $oDocumentController->deleteDocument($document_srl);
+ $output = $oDocumentController->deleteDocument($document_srl, $this->grant->manager);
if(!$output->toBool()) return $output;
$this->add('mid', Context::get('mid'));
@@ -232,17 +232,16 @@
}
// 글이 없을 경우 에러
- if(!$data) return $this->doError('msg_invalid_request');
+ if(!$data) return new Object(-1, 'msg_invalid_request');
// 문서의 비밀번호와 입력한 비밀번호의 비교
- if($data->password != $password) return $this->doError('msg_invalid_password');
+ if($data->password != $password) return new Object(-1, 'msg_invalid_password');
// 해당 글에 대한 권한 부여
if($comment_srl) {
$oCommentController = &getController('comment');
$oCommentController->addGrant($comment_srl);
} else {
- $_SESSION['own_document'][$document_srl] = true;
$oDocumentController = &getController('document');
$oDocumentController->addGrant($document_srl);
}
@@ -291,7 +290,7 @@
* file_srl : 파일의 sequence\n
* sid : db에 저장된 비교 값, 틀리면 다운로드 하지 낳음\n
**/
- function procDownload() {
+ function procDownloadFile() {
// 다운로드에 필요한 변수 체크
$file_srl = Context::get('file_srl');
$sid = Context::get('sid');
diff --git a/modules/board/board.view.php b/modules/board/board.view.php
index d6bfcf630..05c268c7b 100644
--- a/modules/board/board.view.php
+++ b/modules/board/board.view.php
@@ -143,7 +143,7 @@
}
// 삭제하려는 글이 없으면 에러
- if(!$document) return $this->list();
+ if(!$document) return $this->dispContent();
// 권한이 없는 경우 비밀번호 입력화면으로
if($document&&!$document->is_granted) return $this->setTemplateFile('input_password_form');
@@ -169,7 +169,7 @@
// 해당 댓글를 찾아본다
$oCommentModel = &getModel('comment');
- $source_comment = $oCommentModel->getComment($parent_srl);
+ $source_comment = $oCommentModel->getComment($parent_srl, $this->grant->manager);
// 댓글이 없다면 오류
if(!$source_comment) return $this->dispMessage('msg_invalid_request');
@@ -199,7 +199,7 @@
// 해당 댓글를 찾아본다
$oCommentModel = &getModel('comment');
- $comment = $oCommentModel->getComment($comment_srl);
+ $comment = $oCommentModel->getComment($comment_srl, $this->grant->manager);
// 댓글이 없다면 오류
if(!$comment) return $this->dispMessage('msg_invalid_request');
@@ -228,11 +228,11 @@
// 삭제하려는 댓글가 있는지 확인
if($comment_srl) {
$oCommentModel = &getModel('comment');
- $comment = $oCommentModel->getComment($comment_srl);
+ $comment = $oCommentModel->getComment($comment_srl, $this->grant->manager);
}
// 삭제하려는 글이 없으면 에러
- if(!$comment) return $this->list();
+ if(!$comment) return $this->dispContent();
// 권한이 없는 경우 비밀번호 입력화면으로
if($comment_srl&&$comment&&!$comment->is_granted) return $this->setTemplateFile('input_password_form');
@@ -364,7 +364,7 @@
* @brief 게시판의 정보 출력
**/
function dispAdminBoardInfo() {
- if(!Context::get('module_srl')) return $this->list();
+ if(!Context::get('module_srl')) return $this->dispContent();
// 템플릿 파일 지정
$this->setTemplateFile('info');
@@ -382,7 +382,7 @@
* @brief 게시판 삭제 화면 출력
**/
function dispAdminDeleteBoard() {
- if(!Context::get('module_srl')) return $this->list();
+ if(!Context::get('module_srl')) return $this->dispContent();
$module_info = Context::get('module_info');
diff --git a/modules/board/conf/module.xml b/modules/board/conf/module.xml
index ff5552cc1..16d71dad8 100644
--- a/modules/board/conf/module.xml
+++ b/modules/board/conf/module.xml
@@ -57,7 +57,7 @@