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

[livejournal] r18051: LJSUP-7734. The role of the Super Mainta...

Committer: gprochaev
LJSUP-7734. The role of the Super Maintainer is not consistent with its rights

U   trunk/cgi-bin/weblib.pl
U   trunk/htdocs/community/moderate.bml
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2011-01-19 07:28:51 UTC (rev 18050)
+++ trunk/cgi-bin/weblib.pl	2011-01-19 08:04:46 UTC (rev 18051)
@@ -178,6 +178,7 @@
     die "make_authas_select called outside of web context"
         unless LJ::is_web_context();
 
+    $opts->{type} = 'S' unless $opts->{type};
     my @list = LJ::get_authas_list($u, $opts);
 
     # only do most of form if there are options to select from

Modified: trunk/htdocs/community/moderate.bml
===================================================================
--- trunk/htdocs/community/moderate.bml	2011-01-19 07:28:51 UTC (rev 18050)
+++ trunk/htdocs/community/moderate.bml	2011-01-19 08:04:46 UTC (rev 18051)
@@ -196,7 +196,7 @@
     }
     my $dbcr = LJ::get_cluster_def_reader($c);
 
-    unless (LJ::check_rel($c, $remote, 'M')) {
+    unless ($remote->can_moderate($c) || $remote->can_manage($c)) {
         $ret .= "<?h1 $ML{'Error'} h1?><?p " .
             BML::ml('.error.noaccess', {'comm'=>"<?ljcomm $comm ljcomm?>"}) . " p?>";
         return $ret;

Tags: bml, 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