listing: Deleted users should not appear on user listings.

This commit is contained in:
Andre D
2012-10-10 10:37:34 -05:00
committed by Neil Williams
parent 2a0c595658
commit 4a48331422

View File

@@ -2726,8 +2726,9 @@ class UserList(Templated):
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 []