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>2020-01-27 16:17:36 +0300
committerJulius Härtl <jus@bitgrid.net>2020-01-27 16:17:36 +0300
commit075c01857b83d4823c1d9a621d68a7e823aed92b (patch)
tree0c6dd64e17a3185f16b974028950975ad176f546 /lib
parent4107c1989645c0b6dc268d7a7b1e672080ca0de5 (diff)
Properly check for a set guest name when obtaining the file
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 cca4607d..6cdb64a7 100644
--- a/lib/Controller/WopiController.php
+++ b/lib/Controller/WopiController.php
@@ -656,7 +656,7 @@ class WopiController extends Controller {
$editor = $wopi->getEditorUid();
// Use the actual file owner no editor is available
- if ($editor === null || $wopi->getGuestDisplayname() === null) {
+ if ($editor === null || $wopi->getGuestDisplayname() !== null) {
$editor = $wopi->getOwnerUid();
}