Committer: gprochaev
LJSUP-7017. In US IP for verified phones only we show columns SMSU trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm
Modified: trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm 2010-10-04 09:42:33 UTC (rev 17497) +++ trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm 2010-10-04 09:58:18 UTC (rev 17498) @@ -22,9 +22,10 @@ my @ntypes = @LJ::NOTIFY_TYPES; my (undef, $country) = LJ::GeoLocation->ip_class; + my $phone = LJ::SMS::API::RU::Phone->get_phone($u->userid); if ($LJ::DISABLED{smsru} or ($country ne 'RU' - and not LJ::SMS::API::RU::Phone->is_users_number_supported($u) + and ($phone && LJ::SMS::API::RU::Phone->get_cur_phone_statuses($phone) ne 'verified') ) ){ @ntypes = grep { $_ ne 'LJ::NotificationMethod::SMSru' ? 1 : 0 } @ntypes;