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-10-18 22:26:01 +0300
committerPranav Kant <pranavk@collabora.co.uk>2016-10-19 18:42:29 +0300
commit20d2ce582a89e5a9ea50d7c6b02a0e712df93d22 (patch)
treeddd8239c130a8599deb61ade1591b1d88faf73d3 /lib
parent81e60581e4d658063af6bd5174a521819359fe2f (diff)
Don't ignore non-updatable files
Don't discriminate with these files; let them have the right to join the session or generate access token like other sessions
Diffstat (limited to 'lib')
-rw-r--r--lib/db/wopi.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db/wopi.php b/lib/db/wopi.php
index fcff1c54..c826a1a5 100644
--- a/lib/db/wopi.php
+++ b/lib/db/wopi.php
@@ -49,7 +49,7 @@ class Wopi extends \OCA\Richdocuments\Db{
// Get the virtual path (if the file is shared).
$path = $view->getPath($fileId);
- if (!$view->is_file($path) || !$view->isUpdatable($path)) {
+ if (!$view->is_file($path)) {
throw new \Exception('Invalid fileId.');
}