From 45d76a1c6855b56ed226d6ae08b4bd82291a3678 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Mon, 18 Jul 2016 16:10:59 +0530 Subject: Add support for opening and editing files from external storage --- lib/db/wopi.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib') 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']); } } -- cgit v1.2.3