블로그API 애드온에서 editPost 사용시 document_srl을 꼭 체크하도록 수정

글 수정 method 에서 document_srl 체크하도록 수정


git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6832 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-10-09 03:29:57 +00:00
parent b91426b408
commit 130d47db30
3 changed files with 13 additions and 2 deletions

View file

@ -239,6 +239,8 @@
* @brief 문서 수정
**/
function updateDocument($source_obj, $obj) {
if(!$source_obj->document_srl || !$obj->document_srl) return new Object(-1,'msg_invalied_request');
// trigger 호출 (before)
$output = ModuleHandler::triggerCall('document.updateDocument', 'before', $obj);
if(!$output->toBool()) return $output;