• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/uf/messengercallconnector.php
  • Класс: BitrixDiskUfMessengerCallConnector
  • Вызов: MessengerCallConnector::canRead
public function canRead($userId): bool
{
	if ($this->canRead !== null)
	{
		return $this->canRead;
	}

	$call = $this->getCall();
	if (!$call)
	{
		$this->canRead = false;
	}
	else
	{
		$this->canRead = $call->getAssociatedEntity()->checkAccess($userId);
	}

	return $this->canRead;
}