Pass the uid when generating a WOPI token for a directview

Else the editor will show up as a ? in the editorlist.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-11-08 11:11:02 +01:00
Родитель fb520729d7
Коммит dd053529e8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F941078878347C0C
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -92,7 +92,7 @@ class DirectViewController extends Controller {
if(!($item instanceof Node)) {
throw new \Exception();
}
list($urlSrc, $token) = $this->tokenManager->getToken($item->getId());
list($urlSrc, $token) = $this->tokenManager->getToken($item->getId(), null, $direct->getUid());
$params = [
'permissions' => $item->getPermissions(),
'title' => $item->getName(),