임시글에도 적용

This commit is contained in:
conory 2016-04-20 15:41:10 +09:00
parent 29507df48f
commit 951d992ed4

View file

@ -213,13 +213,16 @@ class ModuleHandler extends Handler
{ {
$oDocumentModel = getModel('document'); $oDocumentModel = getModel('document');
$oDocument = $oDocumentModel->getDocument($this->document_srl); $oDocument = $oDocumentModel->getDocument($this->document_srl);
if($oDocument->isSecret() && !$oDocument->isGranted()) if($oDocument->isSecret() || $oDocument->get('status') === $oDocumentModel->getConfigStatus('temp'))
{
if(!$oDocument->isGranted() && !$oDocument->isAccessible())
{ {
$this->httpStatusCode = '403'; $this->httpStatusCode = '403';
} }
} }
} }
} }
}
// If module_info is not set yet, and there exists mid information, get module information based on the mid // If module_info is not set yet, and there exists mid information, get module information based on the mid
if(!$module_info && $this->mid) if(!$module_info && $this->mid)