vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r18559: LJSUP-8149: trusted users for personal j...

Committer: vsukhanov
LJSUP-8149: trusted users for personal journals.
U   trunk/cgi-bin/LJ/Comment.pm
U   trunk/cgi-bin/LJ/S2/EntryPage.pm
Modified: trunk/cgi-bin/LJ/Comment.pm
===================================================================
--- trunk/cgi-bin/LJ/Comment.pm	2011-03-15 11:36:03 UTC (rev 18558)
+++ trunk/cgi-bin/LJ/Comment.pm	2011-03-16 03:20:22 UTC (rev 18559)
@@ -1051,8 +1051,8 @@
     my $self = shift;
     my $remote = LJ::get_remote() or return;
 
-    my %LJ_cmtinfo;
-    $LJ_cmtinfo{'canAdmin'} = $remote->can_manage($self->journal);
+    my %LJ_cmtinfo = ();
+    $LJ_cmtinfo{'canAdmin'} = ($remote->can_manage($self->journal) || $remote->can_sweep($self->journal));
     $LJ_cmtinfo{'journal'} = $self->journal->{user};
     $LJ_cmtinfo{'remote'} = $remote->{user};
 

Modified: trunk/cgi-bin/LJ/S2/EntryPage.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/EntryPage.pm	2011-03-15 11:36:03 UTC (rev 18558)
+++ trunk/cgi-bin/LJ/S2/EntryPage.pm	2011-03-16 03:20:22 UTC (rev 18559)
@@ -314,7 +314,7 @@
 
     # print comment info
     {
-        my $canAdmin = ($remote && $remote->can_manage($u)) ? 1 : 0;
+        my $canAdmin = ($remote && ($remote->can_manage($u) || $remote->can_sweep($u))) ? 1 : 0;
         my $formauth = LJ::ejs(LJ::eurl(LJ::form_auth(1)));
 
         my $cmtinfo = {

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