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

[livejournal] r18172: LJSUP-7839. deny new maintainers adding ...

Committer: gprochaev
LJSUP-7839. deny new maintainers adding between the release and the script execution

U   trunk/htdocs/community/members.bml
Modified: trunk/htdocs/community/members.bml
===================================================================
--- trunk/htdocs/community/members.bml	2011-02-01 04:55:11 UTC (rev 18171)
+++ trunk/htdocs/community/members.bml	2011-02-01 06:57:40 UTC (rev 18172)
@@ -649,9 +649,14 @@
     if ($elect_poll_id) {
         $elect_poll = LJ::Poll->new($elect_poll_id);
     }
-    if ($elect_poll && !$elect_poll->is_closed) {
+    my $super_maintainer = LJ::load_rel_user_cache($c->{userid}, 'S') || [];
+    if (($elect_poll && !$elect_poll->is_closed) || not scalar @$super_maintainer) {
         %disabled = ( disabled => 'disabled' );
     }
+    if (not scalar @$super_maintainer && $LJ::DISABLED{'add_new_maintainers'}) {
+        %disabled = ( disabled => 'disabled' );
+    }
+    %disabled = () unless $LJ::DISABLED{'add_new_maintainers'};
     foreach(@users) {
         my %disabled_maint = ();
         if ($_->{'admin'} && !$remote->can_super_manage($c)) {

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