| @@ 693-696 (lines=4) @@ | ||
| 690 | if($oDocument->get('module_srl') == $oDocument->get('member_srl')) $savedDoc = TRUE; |
|
| 691 | $oDocument->add('module_srl', $this->module_srl); |
|
| 692 | ||
| 693 | if($oDocument->isExists() && $this->module_info->protect_content=="Y" && $oDocument->get('comment_count')>0 && $this->grant->manager==false) |
|
| 694 | { |
|
| 695 | return new Object(-1, 'msg_protect_content'); |
|
| 696 | } |
|
| 697 | ||
| 698 | // if the document is not granted, then back to the password input form |
|
| 699 | $oModuleModel = getModel('module'); |
|
| @@ 803-806 (lines=4) @@ | ||
| 800 | return $this->setTemplateFile('input_password_form'); |
|
| 801 | } |
|
| 802 | ||
| 803 | if($this->module_info->protect_content=="Y" && $oDocument->get('comment_count')>0 && $this->grant->manager==false) |
|
| 804 | { |
|
| 805 | return $this->dispBoardMessage('msg_protect_content'); |
|
| 806 | } |
|
| 807 | ||
| 808 | Context::set('oDocument',$oDocument); |
|
| 809 | ||
| @@ 128-131 (lines=4) @@ | ||
| 125 | $oDocument->add('member_srl', $obj->member_srl); |
|
| 126 | } |
|
| 127 | ||
| 128 | if($this->module_info->protect_content=="Y" && $oDocument->get('comment_count')>0 && $this->grant->manager==false) |
|
| 129 | { |
|
| 130 | return new Object(-1,'msg_protect_content'); |
|
| 131 | } |
|
| 132 | ||
| 133 | if(!$this->grant->manager) |
|
| 134 | { |
|
| @@ 213-216 (lines=4) @@ | ||
| 210 | $oDocumentModel = &getModel('document'); |
|
| 211 | $oDocument = $oDocumentModel->getDocument($document_srl); |
|
| 212 | // check protect content |
|
| 213 | if($this->module_info->protect_content=="Y" && $oDocument->get('comment_count')>0 && $this->grant->manager==false) |
|
| 214 | { |
|
| 215 | return new Object(-1, 'msg_protect_content'); |
|
| 216 | } |
|
| 217 | ||
| 218 | // generate document module controller object |
|
| 219 | $oDocumentController = getController('document'); |
|