mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-13 16:34:52 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@265 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9bea7099e3
commit
d67ed7f81f
2 changed files with 5 additions and 5 deletions
|
|
@ -66,7 +66,7 @@
|
|||
/**
|
||||
* @brief 단일 엮인글 삭제
|
||||
**/
|
||||
function deleteTrackback($trackback_srl) {
|
||||
function deleteTrackback($trackback_srl, $is_admin = false) {
|
||||
// trackback model 객체 생성
|
||||
$oTrackbackModel = &getModel('trackback');
|
||||
|
||||
|
|
@ -79,7 +79,7 @@
|
|||
$oDocumentModel = &getModel('document');
|
||||
|
||||
// 권한이 있는지 확인
|
||||
if(!$oDocumentModel->isGranted($document_srl)) return new Object(-1, 'msg_not_permitted');
|
||||
if(!$is_admin && !$oDocumentModel->isGranted($document_srl)) return new Object(-1, 'msg_not_permitted');
|
||||
|
||||
// 삭제
|
||||
$oDB = &DB::getInstance();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue