LockManager.php
public function isAccessible(AcquirerInterface $acquirer, ResourceInterface $resource)
    {
        if (!$resource->isLocked()) {
            return true;
        }

        $lock = $resource->getLock();
        if ($lock instanceof ExpiringLockInterface and $this->isLockExpired($lock)) {
            $this->release($lock);

            return true;
        }

        return $lock->getAcquirer()->getIdentifier() === $acquirer->getIdentifier();
    }
public function isAccessible(AcquirerInterface $acquirer, ResourceInterface $resource)
    {
        if (!$resource->isLocked()) {
            return true;
        }

        $lock = $resource->getLock();
        if ($lock instanceof ExpiringLockInterface and $this->isLockExpired($lock)) {
            $this->release($lock);

            return true;
        }

        return $lock->getAcquirer()->getIdentifier() === $acquirer->getIdentifier();
    }
Check whether the given Acquirer may access the Resource in question.

@param AcquirerInterface $acquirer
@param ResourceInterface $resource

@return bool