Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Allow mods to see contrib list #601

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion r2/r2/controllers/front.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def GET_editreddit(self, location, num, after, reverse, count):
pane = EditorList(editable = c.user_is_admin)
elif is_moderator and location == 'banned':
pane = BannedList(editable = is_moderator)
elif location == 'contributors' and c.site.type != 'public':
elif is_moderator and location == 'contributors':
pane = ContributorList(editable = is_moderator)
elif (location == 'stylesheet'
and c.site.can_change_stylesheet(c.user)
Expand Down
2 changes: 1 addition & 1 deletion r2/r2/lib/pages/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,7 @@ def container_name(self):
return c.user._fullname

class ContributorList(UserList):
"""Contributor list on a restricted/private reddit."""
"""Contributor list; only viewable by mods."""
type = 'contributor'

@property
Expand Down