Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[livejournal] r21977: LJSUP-12227: Trava widget aviable for li...

Committer: amyshkin
LJSUP-12227: Trava widget aviable for listen for user with non RUS-IP
U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2012-05-17 09:06:19 UTC (rev 21976)
+++ trunk/htdocs/userinfo.bml	2012-05-17 09:14:28 UTC (rev 21977)
@@ -5,6 +5,7 @@
     use LJ::TimeUtil;
     use LJ::PersonalStats::DB;
     use LJ::Setting::Music;
+    use LJ::Setting::Music::Trava;
 
     use vars qw($title $windowtitle $body $head $bml_okay %GET);
 
@@ -1679,7 +1680,8 @@
     # Music
     my $playlist_id = $u->prop('playlist_id');
 
-    if ( LJ::is_enabled('userplaylist') &&
+    if ( LJ::Setting::Music::Trava::good_ip() &&
+         LJ::is_enabled('userplaylist') &&
          ($u->is_personal || $u->is_identity) &&
          (( $remote && $remote->can_manage($u) && LJ::Setting::Music->should_show_playlist($u) ) ||
           ( $remote && ! $remote->can_manage($u) && LJ::Setting::Music::Trava->good_ip() && $playlist_id ))

Tags: amyshkin, bml, livejournal, zilogic
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments