Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

listing: Deleted users should not appear on user listings #555

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+3 −2
Split
View
@@ -2815,8 +2815,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 []