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

[livejournal] r18796: 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 08:55:07 UTC (rev 18795)
+++ trunk/cgi-bin/taglib.pl	2011-04-05 08:56:48 UTC (rev 18796)
@@ -468,9 +468,9 @@
     # get permission hashref and check it; note that we fall back to the control
     # permission, which will allow people to add even if they can't add by default
     my $perms = LJ::Tags::get_permission_levels($u);
-    
-    return LJ::Tags::_remote_satisfies_permission($u, $remote, $perms->{add}) ||
-           LJ::Tags::_remote_satisfies_permission($u, $remote, $perms->{control});
+
+    return LJ::Tags::_remote_satisfies_permission($u, $remote, $perms->{add}, "add") ||
+           LJ::Tags::_remote_satisfies_permission($u, $remote, $perms->{control}, "add");
 }
 
 # <LJFUNC>
@@ -498,7 +498,7 @@
     my $perms = LJ::Tags::get_permission_levels($journal);
     if ($perms->{add} eq 'author_moder'){
         return 1 if $remote==$entry->poster; # check author
-        return $remote->can_manage($entry->journal);  # check maintainer
+        return $remote->can_manage($entry->journal) || $remote->can_moderate($entry->journal);  # check maintainer
     }
  
     ## generic case: if $remote can add tags to the entire journal of the entry

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