Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-21 17:40:28 +0300
committerJulius Härtl <jus@bitgrid.net>2020-08-21 17:40:28 +0300
commit30cf65298d7b0fc41430df29e5bb141eb9a10a47 (patch)
tree484214fea83d125d27a9a30f290d2ee648e5af55
parent62fb9ac198d660fa1c2385cc831d2e4b36783b91 (diff)
Set proper user for federated editing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--lib/Controller/WopiController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php
index a88b341f..03a6fb4c 100644
--- a/lib/Controller/WopiController.php
+++ b/lib/Controller/WopiController.php
@@ -393,7 +393,7 @@ class WopiController extends Controller {
}
// Set the user to register the change under his name
- $this->userScopeService->setUserScope($wopi->getEditorUid());
+ $this->userScopeService->setUserScope($wopi->getUserForFileAccess());
$this->userScopeService->setFilesystemScope($isPutRelative ? $wopi->getEditorUid() : $wopi->getUserForFileAccess());
try {