fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-08-24 11:16 am

[dw-free] Mention Account Type for Communities on Account Settings

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

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

Display account level for communities

Patch by [personal profile] ninetydegrees.

Files modified:
  • cgi-bin/DW/Setting/Display/AccountLevel.pm
--------------------------------------------------------------------------------
diff -r 438eb54763e4 -r 726305230643 cgi-bin/DW/Setting/Display/AccountLevel.pm
--- a/cgi-bin/DW/Setting/Display/AccountLevel.pm	Wed Aug 24 19:13:07 2011 +0800
+++ b/cgi-bin/DW/Setting/Display/AccountLevel.pm	Wed Aug 24 19:15:29 2011 +0800
@@ -20,7 +20,7 @@
 sub should_render {
     my ( $class, $u ) = @_;
 
-    return $u && $u->is_person && LJ::is_enabled( 'payments' ) ? 1 : 0;
+    return $u && ( $u->is_person || $u->is_community ) && LJ::is_enabled( 'payments' ) ? 1 : 0;
 }
 
 sub label {
--------------------------------------------------------------------------------