Log in as owner, not editor during checkFileInfo WOPI call

This seems to not work in some cases when files are shared.
This commit is contained in:
Pranav Kant 2016-10-27 15:57:54 +05:30 committed by Andras Timar
parent 8f0c7d304e
commit f4a40b1067

View File

@ -540,8 +540,8 @@ class DocumentController extends Controller {
}
// Login the user to see his mount locations
$this->loginUser($res['editor']);
$view = \OC\Files\Filesystem::getView();
$this->loginUser($res['owner']);
$view = new \OC\Files\View('/' . $res['owner'] . '/files');
$info = $view->getFileInfo($res['path']);
$this->logoutUser();