Permalink
Browse files

listing: Deleted users should not appear on user listings.

  • Loading branch information...
1 parent 2a0c595 commit 4a48331422c4df2024aef3c49937fb39268aecd4 @andre-d andre-d committed with spladug Oct 10, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 r2/r2/lib/pages/pages.py
View
@@ -2726,8 +2726,9 @@ def _user_rows(self, row_type, uids, editable_fn=None):
users = Account._byID(uids, True, return_dict = False)
rows = []
for u in users:
- editable = editable_fn(u) if editable_fn else self.editable
- rows.append(self.user_row(row_type, u, editable))
+ if not u._deleted:
+ editable = editable_fn(u) if editable_fn else self.editable
+ rows.append(self.user_row(row_type, u, editable))
return rows
else:
return []

0 comments on commit 4a48331

Please sign in to comment.