- Модуль: im
- Путь к файлу: ~/bitrix/modules/im/lib/V2/Chat/GroupChat.php
- Класс: BitrixImV2ChatGroupChat
- Вызов: GroupChat::checkAccessWithoutCaching
protected function checkAccessWithoutCaching(int $userId): bool
{
$options = [
'SELECT' => ['ID', 'CHAT_ID', 'USER_ID', 'START_ID'],
'FILTER' => ['USER_ID' => $userId, 'CHAT_ID' => $this->getChatId()],
'LIMIT' => 1,
];
return $this->getRelations($options)->hasUser($userId, $this->getChatId());
}