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:
parent
8f0c7d304e
commit
f4a40b1067
@ -540,8 +540,8 @@ class DocumentController extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Login the user to see his mount locations
|
// Login the user to see his mount locations
|
||||||
$this->loginUser($res['editor']);
|
$this->loginUser($res['owner']);
|
||||||
$view = \OC\Files\Filesystem::getView();
|
$view = new \OC\Files\View('/' . $res['owner'] . '/files');
|
||||||
$info = $view->getFileInfo($res['path']);
|
$info = $view->getFileInfo($res['path']);
|
||||||
|
|
||||||
$this->logoutUser();
|
$this->logoutUser();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user