diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php index 7500cf9fd3..27d85dbcad 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -425,7 +425,7 @@ public function putFile($fileId, if (!$this->encryptionManager->isEnabled() || $this->isMasterKeyEnabled()) { // Set the user to register the change under his name - $this->userScopeService->setUserScope($wopi->getUserForFileAccess()); + $this->userScopeService->setUserScope($wopi->getEditorUid()); $this->userScopeService->setFilesystemScope($isPutRelative ? $wopi->getEditorUid() : $wopi->getUserForFileAccess()); } else { // Per-user encryption is enabled so that collabora isn't able to store the file by using the