팝업 메뉴에 추천, 비추천, 신고 취소 기능 작동하도록 추가.

This commit is contained in:
BJRambo 2019-08-08 17:57:20 +09:00
parent adb68347ef
commit ff9c21d04f
4 changed files with 47 additions and 19 deletions

View file

@ -311,13 +311,16 @@ class documentController extends document
{
throw new Rhymix\Framework\Exceptions\MustLogin;
}
$document_srl = intval(Context::get('target_srl'));
$module_info = getModel('module')->getModuleInfoByDocumentSrl($document_srl);
if($this->module_info->cancel_vote !== 'Y')
if($module_info->cancel_vote !== 'Y')
{
throw new Rhymix\Framework\Exception('failed_voted_cancel');
throw new Rhymix\Framework\Exception('failed_declared_cancel');
}
$document_srl = intval(Context::get('target_srl'));
if(!$document_srl)
{
throw new Rhymix\Framework\Exceptions\InvalidRequest;