Committer: gprochaev
LJSV-1416. Moderators unable to view list of existing tagsU 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;