wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r20932: LJSUP-10815. Allow access for users from...

Committer: gprochaev
LJSUP-10815. Allow access for users from community and if migrated

U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-01-19 09:44:23 UTC (rev 20931)
+++ trunk/cgi-bin/LJ/User.pm	2012-01-19 09:53:43 UTC (rev 20932)
@@ -3826,6 +3826,11 @@
 
     return 0 if $LJ::DISABLED{'new_ljphoto'};
 
+    foreach my $comm_name (@LJ::LJPHOTO_ALLOW_FROM_COMMUNITIES) {
+        my $comm = LJ::load_user ($comm_name);
+        return 0 unless $comm;
+        return 1 if $u->can_manage ($comm) or $comm->is_friend($u); 
+    }
     return 1 if $u->prop ('fotki_migration_status');
 
     return 0;

Tags: gprochaev, livejournal, pm, wisest-owl
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