kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2009-10-23 05:04 am

[dw-free] "last maintainer" warning shows up even for non-maintainers when leaving a delet

[commit: http://hg.dwscoalition.org/dw-free/rev/baea7ab6dbd5]

http://bugs.dwscoalition.org/show_bug.cgi?id=1966

Only show "last maintainer" warning to community admins.

Patch by [staff profile] denise.

Files modified:
  • htdocs/community/leave.bml
--------------------------------------------------------------------------------
diff -r 8c91bda1aac5 -r baea7ab6dbd5 htdocs/community/leave.bml
--- a/htdocs/community/leave.bml	Thu Oct 22 15:51:46 2009 -0500
+++ b/htdocs/community/leave.bml	Fri Oct 23 00:04:21 2009 -0500
@@ -62,7 +62,7 @@
     } else {
         # show a confirmation form
         $body .= "<?h1 $ML{'.sure'} h1?>";
-        $body .= "<p>" . BML::ml( '.label.lastmaintainer.deletedcomm' ) . "</p>" if $cu->is_deleted;
+        $body .= "<?p $ML{'.label.lastmaintainer.deletedcomm'} p?>" if $cu->is_deleted && $remote->can_manage( $cu );
         $body .= "<?p ";
         if ($watching && !$memberof) {
             $body .= BML::ml('.label.buttontostopwatch', { commname => $ecname });
--------------------------------------------------------------------------------