Fix #1021 hide secret documents and comments from search

게시판에서 검색할 때 아래의 경우에는 비밀글을 제외

  - 내용
  - 제목+내용
  - 댓글

댓글 검색시 비밀댓글도 제외
This commit is contained in:
Kijin Sung 2018-05-30 22:47:00 +09:00
parent fad9400793
commit 7b8bea5923
3 changed files with 10 additions and 0 deletions

View file

@ -1442,6 +1442,14 @@ class documentModel extends document
}
break;
}
// Exclude secret documents if searching content or comment
// https://github.com/rhymix/rhymix/issues/1021
if($search_target === 'content' || $search_target === 'title_content' || $search_target === 'comment')
{
$args->statusList = array($this->getConfigStatus('public'));
$args->comment_is_secret = 'N';
}
}
if ($searchOpt->isExtraVars)