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 {
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org