From 64e54bcc9851e4fec3f97a5c329e059528cff385 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) {