mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 14:58:27 -05:00
Fix editable value for UserList rows.
The most dangerous lines are the ones that look too simple to consider.
This commit is contained in:
committed by
Neil Williams
parent
cf68046674
commit
228753f70b
@@ -2818,8 +2818,6 @@ class UserList(Templated):
|
||||
"""Convenience method for constructing a UserTableItem
|
||||
instance of the user with type, container_name, etc. of this
|
||||
UserList instance"""
|
||||
editable = self.editable
|
||||
|
||||
return UserTableItem(user, row_type, self.cells, self.container_name,
|
||||
editable, self.remove_action)
|
||||
|
||||
@@ -2976,7 +2974,7 @@ class ModList(UserList):
|
||||
|
||||
@property
|
||||
def invited_user_rows(self):
|
||||
return self._user_rows(self.invite_type, c.site.moderator_invite_ids(), self.moderator_editable)
|
||||
return self._user_rows(self.invite_type, c.site.moderator_invite_ids())
|
||||
|
||||
def user_ids(self):
|
||||
return c.site.moderators
|
||||
|
||||
Reference in New Issue
Block a user