Skip to content

Commit

Permalink
Merge pull request #270 from nextcloud/backport/251/stable27
Browse files Browse the repository at this point in the history
[stable27] fix: Use lock owner display name on error response
  • Loading branch information
juliushaertl committed Mar 21, 2024
2 parents 24223b8 + 956de07 commit 01aa206
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 01aa206

Please sign in to comment.