diff --git a/lib/Service/LockService.php b/lib/Service/LockService.php index 37f6cee4..9b657b96 100644 --- a/lib/Service/LockService.php +++ b/lib/Service/LockService.php @@ -231,7 +231,7 @@ public function canUnlock(LockContext $request, FileLock $current): void { $isSameType = $request->getType() === $current->getType(); // Check the token for token based locks - if ($request->getType() === ILock::TYPE_TOKEN) { + if ($current->getType() === ILock::TYPE_TOKEN) { if ($isSameToken || ($this->allowUserOverride && $isSameUser)) { return; }