Skip to content

Commit

Permalink
[#2939] Group list now shows correct packages based on user part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 2, 2012
1 parent bd77a47 commit 166b98e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ckan/controllers/group.py
Expand Up @@ -120,6 +120,12 @@ def index(self):
except NotAuthorized:
abort(401, _('Not authorized to see this page'))

# pass user info to context as needed to view private datasets of
# orgs correctly
if c.userobj:
context['user_id'] = c.userobj.id
context['user_is_admin'] = c.userobj.sysadmin

results = self._action('group_list')(context, data_dict)

c.page = Page(
Expand Down

0 comments on commit 166b98e

Please sign in to comment.