• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/access.php
  • Класс: CAccess
  • Вызов: CAccess::DeleteCodes
static function DeleteCodes($providerId, $userId)
{
	$userId = (int)$userId;

	$connection = MainApplication::getConnection();
	$helper = $connection->getSqlHelper();

	$connection->query("
		delete from b_user_access 
		where user_id = {$userId} 
			and provider_id = '{$helper->forSql($providerId)}'
	");
}