#615 게시물 등록시 srl 변경 시키는 문제 수정

This commit is contained in:
akasima 2014-04-14 15:45:46 +09:00
parent 11adcfb4fb
commit 36980e4d5f
4 changed files with 47 additions and 1 deletions

View file

@ -234,6 +234,7 @@ class documentController extends document
if(!$output->toBool()) return $output;
// Register it if no given document_srl exists
if(!$obj->document_srl) $obj->document_srl = getNextSequence();
elseif(!checkUserSequence($obj->document_srl)) return new Object(-1, 'msg_not_permitted');
$oDocumentModel = getModel('document');
// Set to 0 if the category_srl doesn't exist