Add UserId, UserFriendlyName to WOPI CheckFileInfo
This commit is contained in:
parent
7c4aa05c20
commit
05b4d568f6
@ -438,11 +438,15 @@ class DocumentController extends Controller {
|
|||||||
http_response_code(404);
|
http_response_code(404);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$editorName = \OC::$server->getUserManager()->get($res['editor'])->getDisplayName();
|
||||||
\OC::$server->getLogger()->debug('File info: {info}.', [ 'app' => $this->appName, 'info' => $info ]);
|
\OC::$server->getLogger()->debug('File info: {info}.', [ 'app' => $this->appName, 'info' => $info ]);
|
||||||
return array(
|
return array(
|
||||||
'BaseFileName' => $info['name'],
|
'BaseFileName' => $info['name'],
|
||||||
'Size' => $info['size'],
|
'Size' => $info['size'],
|
||||||
'Version' => $version
|
'Version' => $version,
|
||||||
|
'UserId' => $res['editor'],
|
||||||
|
'UserFriendlyName' => $editorName
|
||||||
//'DownloadUrl' => '',
|
//'DownloadUrl' => '',
|
||||||
//'FileUrl' => '',
|
//'FileUrl' => '',
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user