• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/component/userprofile.php
  • Класс: BitrixIntranetComponentUserProfile
  • Вызов: UserProfile::reindexUserAction
public function reindexUserAction(array $params = [])
{
	global $USER;

	$result = false;

	$userId = (!empty($params['userId']) && (int)$params['userId'] > 0 ? (int)$params['userId'] : $this->arParams["ID"]);
	if (
		$userId != $this->arParams["ID"]
		&& $userId != $USER->getId()
	)
	{
		return $result;
	}

	if ($userId == $this->arParams["ID"])
	{
		$permissions = $this->getPermissions();
		if (!$permissions['edit'])
		{
			return $result;
		}
	}

	BitrixMainUserTable::indexRecord($userId);

	return true;
}