Skip to content

Commit 956de07

Browse files
juliusknorrbackportbot[bot]
authored andcommitted
fix: Use lock owner display name on error response
Signed-off-by: Julius Härtl <[email protected]>
1 parent 24223b8 commit 956de07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Controller/LockController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private function buildOCSResponse($format, DataResponse $data) {
153153
if ($data->getStatus() === Http::STATUS_LOCKED) {
154154
/** @var FileLock $lock */
155155
$lock = $data->getData();
156-
$message = $this->l10n->t('File is currently locked by %s', [$lock->getOwner()]);
156+
$message = $this->l10n->t('File is currently locked by %s', [$lock->getDisplayName()]);
157157
}
158158
if ($data->getStatus() === Http::STATUS_PRECONDITION_FAILED) {
159159
/** @var FileLock $lock */

0 commit comments

Comments
 (0)