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

[livejournal] r18125: LJSUP-7806. Maintainer can not deleted a...

Committer: gprochaev
LJSUP-7806. Maintainer can not deleted abilities

U   trunk/htdocs/community/members.bml
Modified: trunk/htdocs/community/members.bml
===================================================================
--- trunk/htdocs/community/members.bml	2011-01-27 08:55:32 UTC (rev 18124)
+++ trunk/htdocs/community/members.bml	2011-01-27 09:11:34 UTC (rev 18125)
@@ -79,6 +79,7 @@
             LJ::set_rel($c->{userid}, $new_sm_u->{userid}, 'S');
         }
     }
+
     if ($POST{'action:update'}) {
         # validate form auth
         return $print_with_ad->("<?h1 $ML{'Error'} h1?><?p $ML{'error.invalidform'} p?>")
@@ -661,7 +662,7 @@
             $ret .= "<td style='text-align: center;'>";
             $ret .= LJ::html_check({ 'name' => "edit_$_->{'userid'}_$key",
                                      'selected' => $_->{$key}, $key =~ /admin/ ? (%disabled, %disabled_maint) : () });
-            $ret .= LJ::html_hidden({ 'name' => "edit_$_->{'userid'}_$key", value => $_->{$key} ? 'on' : '' }) if %disabled || %disabled_maint;
+            $ret .= LJ::html_hidden({ 'name' => "edit_$_->{'userid'}_$key", value => $_->{$key} ? 'on' : '' }) if $key =~ /admin/ && (%disabled || %disabled_maint);
             $wstr .= $attrshort_r{$key} if $_->{$key};
             $ret .= "</td>";
         }

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