diff --git a/ckan/controllers/group.py b/ckan/controllers/group.py index 2f0e2e8d4a5..859c3d89360 100644 --- a/ckan/controllers/group.py +++ b/ckan/controllers/group.py @@ -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(