Skip to content

Commit

Permalink
fix: Use lock owner display name on error response
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr authored and backportbot[bot] committed Mar 21, 2024
1 parent 24223b8 commit 956de07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/LockController.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private function buildOCSResponse($format, DataResponse $data) {
if ($data->getStatus() === Http::STATUS_LOCKED) {
/** @var FileLock $lock */
$lock = $data->getData();
$message = $this->l10n->t('File is currently locked by %s', [$lock->getOwner()]);
$message = $this->l10n->t('File is currently locked by %s', [$lock->getDisplayName()]);
}
if ($data->getStatus() === Http::STATUS_PRECONDITION_FAILED) {
/** @var FileLock $lock */
Expand Down

0 comments on commit 956de07

Please sign in to comment.