실수로 정리되지 않은 코드 정리..

This commit is contained in:
qw5414 2016-02-11 13:17:40 +09:00
parent f4d8f613fe
commit a4dbf16746
2 changed files with 15 additions and 16 deletions

View file

@ -114,7 +114,7 @@ class boardController extends board
return new Object(-1,'msg_not_permitted');
}
if($this->module_info->protect_content == "Y" || $this->module_info->protect_update_content == 'Y')
if($this->module_info->protect_content == 'Y' || $this->module_info->protect_update_content == 'Y')
{
if($oDocument->get('comment_count') > 0 && $this->grant->manager == false)
{
@ -215,7 +215,7 @@ class boardController extends board
$oDocumentModel = &getModel('document');
$oDocument = $oDocumentModel->getDocument($document_srl);
// check protect content
if($this->module_info->protect_content == "Y" || $this->module_info->protect_delete_content == 'Y')
if($this->module_info->protect_content == 'Y' || $this->module_info->protect_delete_content == 'Y')
{
if($oDocument->get('comment_count') > 0 && $this->grant->manager == false)
{

View file

@ -642,7 +642,6 @@ class boardView extends board
return $this->dispBoardMessage('msg_not_permitted');
}
$oDocumentModel = getModel('document');
$logged_info = Context::get('logged_info');