Login as editor, not owner

This token belongs to editor, not owner, so its wrong to login as
owner.
This commit is contained in:
Pranav Kant 2016-10-19 02:29:41 +05:30
parent 20d2ce582a
commit 74dd2a6d8a

View File

@ -476,9 +476,8 @@ class DocumentController extends Controller {
} }
// Login the user to see his mount locations // Login the user to see his mount locations
$this->loginUser($res['owner']); $this->loginUser($res['editor']);
$view = new \OC\Files\View('/' . $res['editor'] . '/files');
$view = new \OC\Files\View('/' . $res['owner'] . '/files');
$info = $view->getFileInfo($res['path']); $info = $view->getFileInfo($res['path']);
// Close the session created for user login // Close the session created for user login