• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/webdavserver.php
  • Класс: CDavWebDavServer
  • Вызов: CDavWebDavServer::fillResourceRootStorages
private function fillResourceRootStorages ($entityType, &$arResources, $requestPath)
{
	$storages = $this->getStoragesByEntityType($entityType, $requestPath);

	foreach ($storages as $objectId => $item)
	{
		$storageId = $this->getStorageId($item['URL']);
		$storage = Storage::loadById($storageId);
		$object = $storage->getRootObject();

		if (!$object)
		{
			continue;
		}

		$securityContext = $object->getStorage()->getCurrentUserSecurityContext();

		if (!$object->canRead($securityContext))
		{
			continue;
		}

		$arResources[] = $this->getResourceByObject($item['URL'], $object);
	}

	return true;
}