Skip to content

Commit 0e1d8f7

Browse files
juliusknorrbackportbot[bot]
authored andcommitted
Use proper file id source for public shares
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 1029f58 commit 0e1d8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Service/ApiService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function create($fileId = null, $filePath = null, $token = null, $guestNa
115115
$lockInfo = null;
116116
}
117117

118-
$isLocked = $this->documentService->lock($fileId);
118+
$isLocked = $this->documentService->lock($file->getId());
119119
if (!$isLocked) {
120120
$readOnly = true;
121121
}

0 commit comments

Comments
 (0)