Merge pull request #341 from nhirokinet/feature/adapt_groupfolder
Richdocument on Android did not work in groupfolders
This commit is contained in:
Коммит
53b6fa1194
|
@ -131,7 +131,13 @@ class TokenManager {
|
|||
$file = $rootFolder->getById($fileId)[0];
|
||||
// If its a public share, use the owner from the share, otherwise check the file object
|
||||
if (is_null($owneruid)) {
|
||||
$owneruid = $file->getOwner()->getUID();
|
||||
$owner = $file->getOwner();
|
||||
if (is_null($owner)) {
|
||||
// Editor UID instead of owner UID in case owner is null e.g. group folders
|
||||
$owneruid = $editoruid;
|
||||
} else {
|
||||
$owneruid = $owner->getUID();
|
||||
}
|
||||
}
|
||||
$serverHost = $this->urlGenerator->getAbsoluteURL('/');//$this->request->getServerProtocol() . '://' . $this->request->getServerHost();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче