Skip to content

Commit 1d4cd96

Browse files
juliusknorrbackportbot[bot]
authored andcommitted
fix: Always return the actual lock type
Signed-off-by: Julius Härtl <[email protected]>
1 parent 28b0b58 commit 1d4cd96

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/DAV/LockPlugin.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ public function customProperties(PropFind $propFind, INode $node) {
157157
return null;
158158
}
159159

160-
$type = $lock->getType();
161-
162-
return $type !== ILock::TYPE_TOKEN ? $type : ILock::TYPE_USER;
160+
return $lock->getType();
163161
});
164162

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

0 commit comments

Comments
 (0)