diff --git a/modules/board/board.view.php b/modules/board/board.view.php index 2576a4aad..4480b9219 100644 --- a/modules/board/board.view.php +++ b/modules/board/board.view.php @@ -916,7 +916,14 @@ class BoardView extends Board // if the document is not granted, then back to the password input form if($oDocument->isExists() && !$oDocument->isGranted()) { - return $this->setTemplateFile('input_password_form'); + if ($oDocument->getMemberSrl()) + { + return $this->dispBoardMessage('msg_not_permitted'); + } + else + { + return $this->setTemplateFile('input_password_form'); + } } if(!$oDocument->isExists()) @@ -1032,7 +1039,14 @@ class BoardView extends Board // if the document is not granted, then back to the password input form if(!$oDocument->isGranted()) { - return $this->setTemplateFile('input_password_form'); + if ($oDocument->getMemberSrl()) + { + return $this->dispBoardMessage('msg_not_permitted'); + } + else + { + return $this->setTemplateFile('input_password_form'); + } } if($this->module_info->protect_document_regdate > 0 && $this->grant->manager == false) @@ -1219,7 +1233,14 @@ class BoardView extends Board if(!$oComment->isGranted()) { Context::set('document_srl', $oComment->get('document_srl')); - return $this->setTemplateFile('input_password_form'); + if ($oComment->getMemberSrl()) + { + return $this->dispBoardMessage('msg_not_permitted'); + } + else + { + return $this->setTemplateFile('input_password_form'); + } } if($this->module_info->protect_comment_regdate > 0 && $this->grant->manager == false) @@ -1296,7 +1317,14 @@ class BoardView extends Board if(!$oComment->isGranted()) { Context::set('document_srl', $oComment->get('document_srl')); - return $this->setTemplateFile('input_password_form'); + if ($oComment->getMemberSrl()) + { + return $this->dispBoardMessage('msg_not_permitted'); + } + else + { + return $this->setTemplateFile('input_password_form'); + } } if($this->module_info->protect_comment_regdate > 0 && $this->grant->manager == false)