게시글 삭제시 댓글 삭제 트리거에서 권한없음 오류를 return하는 문제 해결

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3522 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-01-15 00:46:16 +00:00
parent f9557205a6
commit 01036595b8
2 changed files with 8 additions and 4 deletions

View file

@ -24,10 +24,13 @@
* @brief 문서 가져오기
**/
function getDocument($document_srl=0, $is_admin = false) {
$oDocument = new documentItem($document_srl);
if($is_admin) $oDocument->setGrant();
if(!$GLOBALS['__DocumentItem__'][$document_srl]) {
$oDocument = new documentItem($document_srl);
if($is_admin) $oDocument->setGrant();
$GLOBALS['__DocumentItem__'][$document_srl] = $oDocument;
}
return $oDocument;
return $GLOBALS['__DocumentItem__'][$document_srl];
}
/**