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
|
||||
$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…
x
Reference in New Issue
Block a user