• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/rest/service/storage.php
  • Класс: BitrixDiskRestServiceStorage
  • Вызов: Storage::get
protected function get($id)
{
	$storage = $this->getStorageById($id);
	$securityContext = $storage->getCurrentUserSecurityContext();
	if(!$storage->getRootObject()->canRead($securityContext))
	{
		throw new AccessException;
	}

	return $storage;
}