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
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-05-17 12:57:33 +0300
committerJulius Härtl <jus@bitgrid.net>2021-05-17 12:57:33 +0300
commit4bdc41b4b28f009039a541975cdf0cc706632d41 (patch)
tree90064adbbcc6c63db5468904e2ba037c2671bf61 /lib
parent41bfb5a7c8c14c084b420481f6e01de56d518852 (diff)
Only use owner id if not a remote Token
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-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 4634b0b2..eb0e6ff2 100644
--- a/lib/Controller/WopiController.php
+++ b/lib/Controller/WopiController.php
@@ -555,7 +555,7 @@ class WopiController extends Controller {
// Unless the editor is empty (public link) we modify the files as the current editor
$editor = $wopi->getEditorUid();
- if ($editor === null || !$wopi->isRemoteToken()) {
+ if ($editor === null && !$wopi->isRemoteToken()) {
$editor = $wopi->getOwnerUid();
}