diff --git a/lib/Service/ApiService.php b/lib/Service/ApiService.php index 2ae85a22a13..972990243b6 100644 --- a/lib/Service/ApiService.php +++ b/lib/Service/ApiService.php @@ -141,6 +141,8 @@ public function create(?int $fileId = null, ?string $filePath = null, ?string $b $lockInfo = null; } + $hasOwner = $file->getOwner() !== null; + if (!$readOnly) { $isLocked = $this->documentService->lock($file->getId()); if (!$isLocked) { @@ -155,6 +157,7 @@ public function create(?int $fileId = null, ?string $filePath = null, ?string $b 'content' => $content, 'documentState' => $documentState, 'lock' => $lockInfo, + 'hasOwner' => $hasOwner, ]); } diff --git a/src/components/Menu/ActionAttachmentUpload.vue b/src/components/Menu/ActionAttachmentUpload.vue index 87d7c62c6fc..4debc3b5bd8 100644 --- a/src/components/Menu/ActionAttachmentUpload.vue +++ b/src/components/Menu/ActionAttachmentUpload.vue @@ -6,7 +6,8 @@