From b00e35cbb73c81544009708f036a4e16e6b10f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 14 Mar 2024 19:54:32 +0100 Subject: [PATCH] fix: Always return the actual lock type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/DAV/LockPlugin.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/DAV/LockPlugin.php b/lib/DAV/LockPlugin.php index d0591501..93975923 100644 --- a/lib/DAV/LockPlugin.php +++ b/lib/DAV/LockPlugin.php @@ -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) {