• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/focuscontroller.php
  • Класс: BitrixDiskFocusController
  • Вызов: FocusController::checkReadRights
private function checkReadRights(BaseObject $object)
{
	$storage = $object->getStorage();
	$securityContext = $storage->getCurrentUserSecurityContext();

	if (!$object->canRead($securityContext))
	{
		$this->errorCollection[] = new Error('Could not find file or folder', self::ERROR_COULD_NOT_READ_FILE);

		return false;
	}

	return true;
}