Log in as owner, not editor during checkFileInfo WOPI call

This seems to not work in some cases when files are shared.
pull/1/head
Pranav Kant 8 years ago committed by Andras Timar
parent 8f0c7d304e
commit f4a40b1067

@ -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();

Loading…
Cancel
Save