• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/helper/usertogroup/requestpopup.php
  • Класс: BitrixSocialnetworkHelperUserToGroupRequestPopup
  • Вызов: RequestPopup::checkHideRequestPopup
static function checkHideRequestPopup(array $params = []): bool
{
	$userId = (int)($params['userId'] ?? 0);
	$groupId = (int)($params['groupId'] ?? 0);

	if ($userId <= 0 || $groupId <= 0)
	{
		return false;
	}

	return (CUserOptions::getOption('socialnetwork', 'hide_request_popup_' . $groupId) === 'Y');
}