Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
wants to merge 1 commit into from

2 participants

Andre d Neil Williams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 2 deletions.
  1. +3 −2 r2/r2/lib/pages/pages.py
5 r2/r2/lib/pages/pages.py
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 []
Something went wrong with that request. Please try again.