mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
팝업 메뉴에 추천, 비추천, 신고 취소 기능 작동하도록 추가.
This commit is contained in:
parent
adb68347ef
commit
ff9c21d04f
4 changed files with 47 additions and 19 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue