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:
authorPranav Kant <pranavk@collabora.co.uk>2016-07-18 13:40:59 +0300
committerPranav Kant <pranavk@collabora.co.uk>2016-07-18 13:47:44 +0300
commit45d76a1c6855b56ed226d6ae08b4bd82291a3678 (patch)
tree99a3592c0212536c605bba4f53e6ce421392d1d3 /lib
parente906c47ef5204882bf1ad9931a7c6d38ad6ef47a (diff)
Add support for opening and editing files from external storage
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']);
}
}