Merge pull request #1910 from bjrambo/pr/deletecomment

삭제한 댓글을 다시 삭제하지 않도록 기록
This commit is contained in:
Johnny 2022-03-24 23:52:07 +09:00 committed by GitHub
commit fa44842dfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -223,12 +223,11 @@ class commentAdminController extends comment
}
$output = $oCommentController->deleteComment($comment_srl, TRUE, toBool($isTrash));
if(!$output->toBool())
if(!$output->toBool() && $output->error !== -2)
{
$oDB->rollback();
return $output;
}
$deleted_count++;
}

View file

@ -11,7 +11,6 @@
*/
class commentController extends comment
{
/**
* Initialization
* @return void
@ -1048,9 +1047,10 @@ class commentController extends comment
{
// check if comment already exists
$comment = CommentModel::getComment($comment_srl);
if(!$comment->isExists())
{
return new BaseObject(-1, 'msg_not_founded');
return new BaseObject(-2, 'msg_not_founded');
}
if(!$is_admin && !$comment->isGranted())
{