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

[livejournal] r18790: LJSV-1416. Moderators unable to view lis...

Committer: gprochaev
LJSV-1416. Moderators unable to view list of existing tags

U   trunk/cgi-bin/taglib.pl
Modified: trunk/cgi-bin/taglib.pl
===================================================================
--- trunk/cgi-bin/taglib.pl	2011-04-05 05:35:10 UTC (rev 18789)
+++ trunk/cgi-bin/taglib.pl	2011-04-05 06:12:25 UTC (rev 18790)
@@ -554,8 +554,11 @@
     } elsif ($perm eq 'private' && $type eq 'control') {
         return $remote->can_manage($u);
     } elsif ($perm eq 'author_moder'){
-        return ($remote->can_manage($u) || LJ::is_friend($u, $remote));
+        return ($remote->can_manage($u) || LJ::is_friend($u, $remote)) || $remote->can_moderate($u);
     } elsif ($perm =~ /^group:(\d+)$/) {
+        ## Moderator is exists in any group
+        return 1 if $remote->can_moderate($u);
+
         my $grpid = $1+0;
         return undef unless $grpid >= 1 && $grpid <= 30;
 

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