mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
#689 checkUserSequence 적용에 의한 글,댓글 복구 문제 처리
This commit is contained in:
parent
b3432462a5
commit
69d2bc74d4
2 changed files with 2 additions and 2 deletions
|
|
@ -300,7 +300,7 @@ class commentController extends comment
|
||||||
{
|
{
|
||||||
$obj->comment_srl = getNextSequence();
|
$obj->comment_srl = getNextSequence();
|
||||||
}
|
}
|
||||||
elseif(!checkUserSequence($obj->comment_srl))
|
elseif(!$is_admin && !$manual_inserted && !checkUserSequence($obj->comment_srl))
|
||||||
{
|
{
|
||||||
return new Object(-1, 'msg_not_permitted');
|
return new Object(-1, 'msg_not_permitted');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -234,7 +234,7 @@ class documentController extends document
|
||||||
if(!$output->toBool()) return $output;
|
if(!$output->toBool()) return $output;
|
||||||
// Register it if no given document_srl exists
|
// Register it if no given document_srl exists
|
||||||
if(!$obj->document_srl) $obj->document_srl = getNextSequence();
|
if(!$obj->document_srl) $obj->document_srl = getNextSequence();
|
||||||
elseif(!checkUserSequence($obj->document_srl)) return new Object(-1, 'msg_not_permitted');
|
elseif(!$manual_inserted && !$isRestore && !checkUserSequence($obj->document_srl)) return new Object(-1, 'msg_not_permitted');
|
||||||
|
|
||||||
$oDocumentModel = getModel('document');
|
$oDocumentModel = getModel('document');
|
||||||
// Set to 0 if the category_srl doesn't exist
|
// Set to 0 if the category_srl doesn't exist
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue