afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-11-23 04:47 pm

[dw-free] If profile display is Mutual, Also Has Access From displays deleted accounts in default pr

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

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

Don't show deleted users in "also has access to" section.

Patch by [personal profile] yvi.

Files modified:
  • htdocs/userinfo.bml
--------------------------------------------------------------------------------
diff -r 12fbf1b192f0 -r 323355b5c882 htdocs/userinfo.bml
--- a/htdocs/userinfo.bml	Mon Nov 23 16:26:55 2009 +0000
+++ b/htdocs/userinfo.bml	Mon Nov 23 16:46:54 2009 +0000
@@ -710,7 +710,7 @@ body<=
                 );
 
                 my @not_mutually_trusted_by_list = sort { $a->display_name cmp $b->display_name }
-                    grep { $_->is_personal || $_->is_identity }
+                    grep { ( $_->is_personal || $_->is_identity ) && $includeuser->( $_ ) }
                     map { $us->{$_} } @not_mutually_trusted_by_userids;
                 my $not_mutually_trusted_by_body_name_ml = @not_mutually_trusted_by_list ?
                     { ml => '.people.not_mutually_trusted_by.some', opts => { num => scalar @not_mutually_trusted_by_list } } :
--------------------------------------------------------------------------------