Skip to content

Commit

Permalink
Do not include datasets in function that dont need them
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas authored and amercader committed Feb 4, 2015
1 parent a4257e7 commit cfcdebd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ckan/controllers/group.py
Expand Up @@ -476,6 +476,7 @@ def edit(self, id, data=None, errors=None, error_summary=None):
return self._save_edit(id, context)

try:
data_dict['include_datasets'] = False
old_data = self._action('group_show')(context, data_dict)
c.grouptitle = old_data.get('title')
c.groupname = old_data.get('name')
Expand Down Expand Up @@ -625,7 +626,9 @@ def members(self, id):
c.members = self._action('member_list')(
context, {'id': id, 'object_type': 'user'}
)
c.group_dict = self._action('group_show')(context, {'id': id})
data_dict = {'id': id}
data_dict['include_datasets'] = False
c.group_dict = self._action('group_show')(context, data_dict)
except NotAuthorized:
abort(401, _('Unauthorized to delete group %s') % '')
except NotFound:
Expand All @@ -638,7 +641,9 @@ def member_new(self, id):

#self._check_access('group_delete', context, {'id': id})
try:
c.group_dict = self._action('group_show')(context, {'id': id})
data_dict = {'id': id}
data_dict['include_datasets'] = False
c.group_dict = self._action('group_show')(context, data_dict)
group_type = 'organization' if c.group_dict['is_organization'] else 'group'
c.roles = self._action('member_roles_list')(
context, {'group_type': group_type}
Expand Down

0 comments on commit cfcdebd

Please sign in to comment.