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

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/ApiService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/ApiService.php b/lib/Service/ApiService.php
index 289443cc6..107462959 100644
--- a/lib/Service/ApiService.php
+++ b/lib/Service/ApiService.php
@@ -115,7 +115,7 @@ class ApiService {
$lockInfo = null;
}
- $isLocked = $this->documentService->lock($fileId);
+ $isLocked = $this->documentService->lock($file->getId());
if (!$isLocked) {
$readOnly = true;
}