• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/attachedobject.php
  • Класс: BitrixDiskAttachedObject
  • Вызов: AttachedObject::canRead
public function canRead($userId)
{
	$connector = $this->getConnector();
	if($connector->canConfidenceReadInOperableEntity() && $this->isConfidenceToOperableEntity())
	{
		return true;
	}

	if (
		!$userId
		&& !$this->getConnector()->isAnonymousAllowed()
	)
	{
		return false;
	}

	return $this->getConnector()->canRead($userId);
}