ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r18696: LJSUP-8039: Deny non-members to view/edi...

Committer: ssafronova
LJSUP-8039: Deny non-members to view/edit/delet entries in business-sensetive communities - LJSUP-8343: owner can't delete the post in community
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2011-03-24 05:50:53 UTC (rev 18695)
+++ trunk/cgi-bin/LJ/User.pm	2011-03-24 08:44:10 UTC (rev 18696)
@@ -9848,11 +9848,11 @@
     return 0 unless $remote;
 
     return 0 unless $remote->can_manage($u);
+    # here admin or supermaintainer
 
     return 0 if $LJ::JOURNALS_WITH_PROTECTED_CONTENT{ $u->{user} } and !LJ::is_friend($u, $remote);
 
-    my $entry = LJ::Entry->new($u, jitemid => $itemid);
-    return $entry->posterid == $remote->userid;
+    return 1;
 }
 
 

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