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

[livejournal] r17220: LJSUP-6406 (FaceBook authoriazation): mi...

Committer: ailyin
LJSUP-6406 (FaceBook authoriazation): minor logic fix
U   trunk/cgi-bin/LJ/Talk/Author/User.pm
Modified: trunk/cgi-bin/LJ/Talk/Author/User.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk/Author/User.pm	2010-08-30 03:02:44 UTC (rev 17219)
+++ trunk/cgi-bin/LJ/Talk/Author/User.pm	2010-08-30 03:05:32 UTC (rev 17220)
@@ -12,8 +12,9 @@
     my $entry              = LJ::Entry->new( $journalu,
                                              ditemid => $opts->{ditemid} );
     my $is_friend          = LJ::is_friend( $journalu, $remote );
-    my $remote_can_comment = $entry->registered_can_comment
-        || ( $remote and $is_friend );
+    my $remote_can_comment = $entry->everyone_can_comment
+        || ( $remote     and $entry->registered_can_comment )
+        || ( $is_friend  and $entry->friends_can_comment );
 
     my %whocheck;
 

Tags: 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