diff options
Diffstat (limited to 'lib/db/wopi.php')
-rw-r--r-- | lib/db/wopi.php | 11 |
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']); } } |