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
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2016-10-18 23:59:41 +0300
committerPranav Kant <pranavk@collabora.co.uk>2016-10-19 18:42:29 +0300
commit74dd2a6d8a9f9b586c2a9782014277cfdb5d1e5b (patch)
treea34ea224eb6ef5436185a713a778d877b4b09a8d
parent20d2ce582a89e5a9ea50d7c6b02a0e712df93d22 (diff)
Login as editor, not owner
This token belongs to editor, not owner, so its wrong to login as owner.
-rw-r--r--controller/documentcontroller.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/controller/documentcontroller.php b/controller/documentcontroller.php
index ec43bdc2..e9307dd2 100644
--- a/controller/documentcontroller.php
+++ b/controller/documentcontroller.php
@@ -476,9 +476,8 @@ class DocumentController extends Controller {
}
// Login the user to see his mount locations
- $this->loginUser($res['owner']);
-
- $view = new \OC\Files\View('/' . $res['owner'] . '/files');
+ $this->loginUser($res['editor']);
+ $view = new \OC\Files\View('/' . $res['editor'] . '/files');
$info = $view->getFileInfo($res['path']);
// Close the session created for user login