vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r18626: LJSUP-8248: Allow sweepers to unscreen c...

Committer: vsukhanov
LJSUP-8248: Allow sweepers to unscreen comments.
U   trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2011-03-18 07:40:32 UTC (rev 18625)
+++ trunk/cgi-bin/LJ/Talk.pm	2011-03-18 08:02:04 UTC (rev 18626)
@@ -354,7 +354,7 @@
     return 0 unless $remote;
     return 1 if $remote->{'user'} eq $u->{'user'} ||
                 $remote->{'user'} eq (ref $up ? $up->{'user'} : $up) ||
-                $remote->can_manage($u) || $remote->can_moderate($u);
+                $remote->can_manage($u) || $remote->can_moderate($u) || $remote->can_sweep($u);
     return 0;
 }
 
@@ -362,6 +362,7 @@
     my ($remote, $u, $up, $userpost) = @_;
     return 0 unless $remote;
     return 0 if !($remote->can_manage($u) || $remote->can_moderate($u)) && $remote->can_moderate($u);
+    return 1 if $remote->can_sweep($u);
     return LJ::Talk::can_screen($remote, $u, $up, $userpost);
 }
 

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