Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r20943: LJSUP-10815 (Fotki.ru: store data on our...

Committer: ailyin
LJSUP-10815 (Fotki.ru: store data on our own servers)
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-01-20 11:05:15 UTC (rev 20942)
+++ trunk/cgi-bin/LJ/User.pm	2012-01-20 11:21:20 UTC (rev 20943)
@@ -3828,9 +3828,10 @@
 
     foreach my $comm_name (@LJ::LJPHOTO_ALLOW_FROM_COMMUNITIES) {
         my $comm = LJ::load_user ($comm_name);
-        next unless $comm;
+        next unless $comm && $comm->is_visible;
         return 1 if $u->can_manage ($comm) or $comm->is_friend($u); 
     }
+
     return 1 if $u->prop ('fotki_migration_status');
 
     return 0;

Tags: ailyin, andy, livejournal, pm
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