Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/db/wopi.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/db/wopi.php b/lib/db/wopi.php
index 423e5038..c8b96d0f 100644
--- a/lib/db/wopi.php
+++ b/lib/db/wopi.php
@@ -120,15 +120,6 @@ class Wopi extends \OCA\Richdocuments\Db{
return false;
}
- $owner = $row['owner_uid'];
- $view = new \OC\Files\View('/' . $owner . '/files');
- $path = $row['path'];
-
- if (!$view->is_file($path)) {
- throw new \Exception('Invalid file path.');
- }
-
- $editor = $row['editor_uid'];
- return array('owner' => $owner, 'editor' => $editor, 'path' => $path);
+ return array('owner' => $row['owner_uid'], 'editor' => $row['editor_uid'], 'path' => $row['path']);
}
}