Committer: vad
LJSUP-10101: update access to photohostingU 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; }