Skip to content

Commit

Permalink
[#3005] Add back c.group_admins on group read teamplate
Browse files Browse the repository at this point in the history
It's used by the legacy templates to show a list of the group's admins
in the sidebar. Legacy templates do not support the new group admins
page. This fixes a frontend test that was failing while testing the
legacy templates.
  • Loading branch information
Sean Hammond committed Nov 6, 2012
1 parent a969604 commit 115e703
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/controllers/group.py
Expand Up @@ -131,6 +131,10 @@ def read(self, id):

context['return_query'] = True

# c.group_admins is used by CKAN's legacy (Genshi) templates only,
# if we drop support for those then we can delete this line.
c.group_admins = self.authorizer.get_admins(c.group)

limit = 20
try:
page = int(request.params.get('page', 1))
Expand Down

0 comments on commit 115e703

Please sign in to comment.