• Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/attachment/blogpostconnector.php
  • Класс: BitrixVoteAttachmentBlogPostConnector
  • Вызов: BlogPostConnector::canRead
public function canRead($userId)
{
	if ($this->entityId === null)
		return true;
	if (is_null($this->canRead))
		$this->canRead = $this->getPermission($userId) >= BLOG_PERMS_READ;

	return $this->canRead;
}