• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/document/onlyoffice/restrictionmanager.php
  • Класс: BitrixDiskDocumentOnlyOfficeRestrictionManager
  • Вызов: RestrictionManager::existsSession
protected function existsSession(string $documentKey, int $userId): bool
{
	$countSession = RestrictionLogTable::query()
		->where('EXTERNAL_HASH', $documentKey)
		->where('USER_ID', $userId)
		->queryCountTotal();

	return $countSession > 0;
}