• Модуль: forum
  • Путь к файлу: ~/bitrix/modules/forum/lib/comments/comment.php
  • Класс: BitrixForumCommentsComment
  • Вызов: Comment::canEdit
public function canEdit()
{
	$result = false;
	if ($this->message === null)
	{
		$this->errorCollection->addOne(new Error(Loc::getMessage("FORUM_CM_ERR_COMMENT_IS_LOST4"), self::ERROR_MESSAGE_IS_NULL));
	}
	else
	{
		$result = ($this->getEntity()->canEdit($this->getUser()->getId()) || (
				((int) $this->message["AUTHOR_ID"] > 0) &&
				((int) $this->message["AUTHOR_ID"] == (int) $this->getUser()->getId()) &&
				$this->getEntity()->canEditOwn($this->getUser()->getId())
			));
	}
	return $result;
}