mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
비밀글일 경우에도 적용
This commit is contained in:
parent
862058d7ce
commit
107996918e
1 changed files with 17 additions and 0 deletions
|
|
@ -207,6 +207,17 @@ class ModuleHandler extends Handler
|
|||
{
|
||||
unset($module_info);
|
||||
}
|
||||
|
||||
// if the secret document permission does not have, specify HTTP 403
|
||||
if(Context::getRequestMethod() == 'GET')
|
||||
{
|
||||
$oDocumentModel = getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($this->document_srl);
|
||||
if($oDocument->isSecret() && !$oDocument->isGranted())
|
||||
{
|
||||
$this->httpStatusCode = '403';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1050,6 +1061,12 @@ class ModuleHandler extends Handler
|
|||
}
|
||||
}
|
||||
|
||||
// Set http status code
|
||||
if($this->httpStatusCode && (!$oModule->getHttpStatusCode() || $oModule->getHttpStatusCode() == '200'))
|
||||
{
|
||||
$oModule->setHttpStatusCode($this->httpStatusCode);
|
||||
}
|
||||
|
||||
// Set http status message
|
||||
self::_setHttpStatusMessage($oModule->getHttpStatusCode());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue