Skip to content

Commit

Permalink
Merge pull request #4717 from Zharktas/remove_members_from_group_read
Browse files Browse the repository at this point in the history
Remove members from group read
  • Loading branch information
wardi committed Apr 9, 2019
2 parents 039b8e6 + 880f96e commit 5e94d64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/controllers/group.py
Expand Up @@ -220,6 +220,10 @@ def read(self, id, limit=20):
# Do not query for the group datasets when dictizing, as they will
# be ignored and get requested on the controller anyway
data_dict['include_datasets'] = False

# Do not query group members as they aren't used in the view
data_dict['include_users'] = False

c.group_dict = self._action('group_show')(context, data_dict)
c.group = context['group']
except (NotFound, NotAuthorized):
Expand Down
4 changes: 4 additions & 0 deletions ckan/views/group.py
Expand Up @@ -454,6 +454,10 @@ def read(group_type, is_organization, id=None, limit=20):
# Do not query for the group datasets when dictizing, as they will
# be ignored and get requested on the controller anyway
data_dict['include_datasets'] = False

# Do not query group members as they aren't used in the view
data_dict['include_users'] = False

group_dict = _action(u'group_show')(context, data_dict)
group = context['group']
except (NotFound, NotAuthorized):
Expand Down

0 comments on commit 5e94d64

Please sign in to comment.