vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r20264: LJSUP-10101: update access to photohosti...

Committer: vad
LJSUP-10101: update access to photohosting
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2011-10-10 11:22:47 UTC (rev 20263)
+++ trunk/cgi-bin/LJ/User.pm	2011-10-10 14:17:23 UTC (rev 20264)
@@ -3818,9 +3818,11 @@
     return 0 if $LJ::DISABLED{'new_ljphoto'};
 
     ## For beta-testers only.
-    my $comm = LJ::load_user($LJ::LJPHOTO_ALLOW_FROM_COMMUNITY);
-    return 1 if $u->can_manage ($comm);
-    return 0 unless $comm && $comm->is_friend($u);
+    foreach my $community (@LJ::LJPHOTO_ALLOW_FROM_COMMUNITIES){
+        my $comm = LJ::load_user($community);
+        next unless $comm;
+        return 1 if $u->can_manage ($comm) or $comm->is_friend($u);
+    }
 
     return 1;
 }

Tags: livejournal, pm, vad, vadvs
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