Fix incorrect handling of secret comments in commentItem::isAccessible()

Regression #961

댓글은 비밀 여부를 status 필드가 아니라 is_secret 필드로 표시함.
문서 모듈 쪽의 코드를 그대로 복붙하여 발생한 오류로 보임.
This commit is contained in:
Kijin Sung 2017-12-27 14:17:38 +09:00
parent 17bec44046
commit ba1942a65d

View file

@ -159,7 +159,7 @@ class commentItem extends BaseObject
return true;
}
if ($this->get('status') == RX_STATUS_PUBLIC)
if ($this->get('status') == RX_STATUS_PUBLIC && $this->get('is_secret') !== 'Y')
{
$this->setAccessible();
return true;