Skip to content

Commit

Permalink
Merge pull request #266 from nextcloud/backport/253/stable28
Browse files Browse the repository at this point in the history
[stable28] Return proper lock type in webdav response
  • Loading branch information
blizzz committed Mar 21, 2024
2 parents 33ea7f5 + 64e54bc commit 05cb882
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/DAV/LockPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ public function customProperties(PropFind $propFind, INode $node) {
return null;
}

$type = $lock->getType();

return $type !== ILock::TYPE_TOKEN ? $type : ILock::TYPE_USER;
return $lock->getType();
});

$propFind->handle(Application::DAV_PROPERTY_LOCK_EDITOR, function () use ($nodeId) {
Expand Down

0 comments on commit 05cb882

Please sign in to comment.