신고취소시 세션 검사 추가

This commit is contained in:
BJRambo 2019-08-08 17:00:54 +09:00
parent 239b231ffa
commit adb68347ef

View file

@ -63,7 +63,8 @@ class documentController extends document
throw new Rhymix\Framework\Exceptions\NotPermitted;
}
}
if($this->module_info->cancel_vote !=='Y')
if($this->module_info->cancel_vote !== 'Y')
{
throw new Rhymix\Framework\Exception('failed_voted_cancel');
}
@ -157,7 +158,7 @@ class documentController extends document
}
}
if($this->module_info->cancel_vote !=='Y')
if($this->module_info->cancel_vote !== 'Y')
{
return new Rhymix\Framework\Exception('failed_voted_canceled');
}
@ -311,6 +312,11 @@ class documentController extends document
throw new Rhymix\Framework\Exceptions\MustLogin;
}
if($this->module_info->cancel_vote !== 'Y')
{
throw new Rhymix\Framework\Exception('failed_voted_cancel');
}
$document_srl = intval(Context::get('target_srl'));
if(!$document_srl)
{
@ -1773,6 +1779,11 @@ class documentController extends document
*/
function declaredDocumentCancel($document_srl)
{
if(!$_SESSION['declared_document'][$document_srl])
{
return new BaseObject(-1, 'failed_declared_cancel');
}
$args = new stdClass();
$args->document_srl = $document_srl;
$output = executeQuery('document.getDeclaredDocument', $args);