From b354d8af494679c27f4d558d2fa455f1d0f933ec Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 30 Oct 2020 15:57:18 +0900 Subject: [PATCH] Revert 61f6456b and add a warning instead --- modules/comment/comment.model.php | 3 +-- modules/document/document.model.php | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/comment/comment.model.php b/modules/comment/comment.model.php index 06e1196c0..6cc66c0b9 100644 --- a/modules/comment/comment.model.php +++ b/modules/comment/comment.model.php @@ -157,12 +157,11 @@ class commentModel extends comment public static function getComment($comment_srl = 0, $is_admin = FALSE, $columnList = array()) { $oComment = new commentItem($comment_srl, $columnList); - /* if($is_admin) { + trigger_error('Called CommentModel::getComment() with $is_admin = true', \E_USER_WARNING); $oComment->setGrant(); } - */ return $oComment; } diff --git a/modules/document/document.model.php b/modules/document/document.model.php index e05a9225a..382030281 100644 --- a/modules/document/document.model.php +++ b/modules/document/document.model.php @@ -169,12 +169,11 @@ class documentModel extends document return $oDocument; } } - /* if($is_admin) { + trigger_error('Called DocumentModel::getDocument() with $is_admin = true', \E_USER_WARNING); $GLOBALS['XE_DOCUMENT_LIST'][$document_srl]->setGrant(); } - */ return $GLOBALS['XE_DOCUMENT_LIST'][$document_srl]; } @@ -212,12 +211,11 @@ class documentModel extends document $oDocument = new documentItem(); $oDocument->setAttribute($attribute, false); } - /* if($is_admin) { + trigger_error('Called DocumentModel::getDocuments() with $is_admin = true', \E_USER_WARNING); $GLOBALS['XE_DOCUMENT_LIST'][$attribute->document_srl]->setGrant(); } - */ $documents[$attribute->document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$attribute->document_srl]; }