• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/webdav.php
  • Класс: CDavWebDav
  • Вызов: CDavWebDav::CheckLockStatus
protected function CheckLockStatus($path, $exclusiveOnly = false)
{
	if (method_exists($this, "CheckLock"))
	{
		$lock = $this->CheckLock($path);
		if (is_array($lock) && !empty($lock))
		{
			if ($this->request->GetParameter("HTTP_IF") === null || !mb_strstr($this->request->GetParameter("HTTP_IF"), $lock["ID"]))
			{
				if (!$exclusiveOnly || ($lock["LOCK_SCOPE"] !== "shared"))
				{
					return false;
				}
			}
		}
	}
	return true;
}